mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 03:20:11 +03:00
chore(event): clean up assertions in input functions
This commit is contained in:
parent
09d77e1ba2
commit
6bebfe5e2f
@ -169,11 +169,8 @@ void PostSize(EvtContext* context, int32_t w, int32_t h) {
|
||||
}
|
||||
|
||||
void ProcessInput(const int32_t param[], OSINPUT id, int32_t* shutdown, EvtContext* context) {
|
||||
if (!context) {
|
||||
// TODO
|
||||
// nullsub_3();
|
||||
// SErrSetLastError(0x57u);
|
||||
}
|
||||
STORM_ASSERT(context);
|
||||
STORM_VALIDATE(context, ERROR_INVALID_PARAMETER);
|
||||
|
||||
switch (id) {
|
||||
case OS_INPUT_CAPTURE_CHANGED:
|
||||
@ -421,9 +418,8 @@ void IEvtInputInitialize() {
|
||||
}
|
||||
|
||||
int32_t IEvtInputProcess(EvtContext* context, int32_t* shutdown) {
|
||||
if (context) {
|
||||
// TODO
|
||||
// nullsub_3();
|
||||
STORM_ASSERT(context);
|
||||
STORM_VALIDATE(context, ERROR_INVALID_PARAMETER, 0);
|
||||
|
||||
int32_t v4 = 0;
|
||||
OSINPUT id;
|
||||
@ -435,13 +431,6 @@ int32_t IEvtInputProcess(EvtContext* context, int32_t* shutdown) {
|
||||
}
|
||||
|
||||
return v4;
|
||||
} else {
|
||||
// TODO
|
||||
// nullsub_3();
|
||||
// SErrSetLastError(0x57u);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
const char* KeyCodeToString(KEY key) {
|
||||
|
Loading…
Reference in New Issue
Block a user