mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore(event): clean up assertions in input functions
This commit is contained in:
parent
09d77e1ba2
commit
6bebfe5e2f
1 changed files with 12 additions and 23 deletions
|
|
@ -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) {
|
void ProcessInput(const int32_t param[], OSINPUT id, int32_t* shutdown, EvtContext* context) {
|
||||||
if (!context) {
|
STORM_ASSERT(context);
|
||||||
// TODO
|
STORM_VALIDATE(context, ERROR_INVALID_PARAMETER);
|
||||||
// nullsub_3();
|
|
||||||
// SErrSetLastError(0x57u);
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case OS_INPUT_CAPTURE_CHANGED:
|
case OS_INPUT_CAPTURE_CHANGED:
|
||||||
|
|
@ -421,9 +418,8 @@ void IEvtInputInitialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t IEvtInputProcess(EvtContext* context, int32_t* shutdown) {
|
int32_t IEvtInputProcess(EvtContext* context, int32_t* shutdown) {
|
||||||
if (context) {
|
STORM_ASSERT(context);
|
||||||
// TODO
|
STORM_VALIDATE(context, ERROR_INVALID_PARAMETER, 0);
|
||||||
// nullsub_3();
|
|
||||||
|
|
||||||
int32_t v4 = 0;
|
int32_t v4 = 0;
|
||||||
OSINPUT id;
|
OSINPUT id;
|
||||||
|
|
@ -435,13 +431,6 @@ int32_t IEvtInputProcess(EvtContext* context, int32_t* shutdown) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return v4;
|
return v4;
|
||||||
} else {
|
|
||||||
// TODO
|
|
||||||
// nullsub_3();
|
|
||||||
// SErrSetLastError(0x57u);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* KeyCodeToString(KEY key) {
|
const char* KeyCodeToString(KEY key) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue