diff --git a/src/video/gltouchjoy.c b/src/video/gltouchjoy.c index ec177dff..43ca2e4a 100644 --- a/src/video/gltouchjoy.c +++ b/src/video/gltouchjoy.c @@ -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);