chore(event): clean up assertions in input functions

This commit is contained in:
fallenoak 2023-01-02 15:56:45 -06:00 committed by GitHub
parent 09d77e1ba2
commit 6bebfe5e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {