mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-03 06:30:33 +00:00
defensive coding
This commit is contained in:
parent
df218fed05
commit
13a7dbfbb0
@ -228,6 +228,10 @@ static void gltouchjoy_setup(void) {
|
||||
LOG("gltouchjoy not initializing axis");
|
||||
return;
|
||||
}
|
||||
if (!axes.model->custom) {
|
||||
LOG("gltouchjoy axes initialization problem");
|
||||
return;
|
||||
}
|
||||
|
||||
// button object
|
||||
|
||||
@ -240,6 +244,10 @@ static void gltouchjoy_setup(void) {
|
||||
LOG("gltouchjoy not initializing buttons");
|
||||
return;
|
||||
}
|
||||
if (!buttons.model->custom) {
|
||||
LOG("gltouchjoy buttons initialization problem");
|
||||
return;
|
||||
}
|
||||
|
||||
clock_gettime(CLOCK_MONOTONIC, &axes.timingBegin);
|
||||
clock_gettime(CLOCK_MONOTONIC, &buttons.timingBegin);
|
||||
|
Loading…
Reference in New Issue
Block a user