X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Finput.c;h=eda86d49a1c8aa2b17b1f529d819da6aaf4c958f;hb=a505b5f14bc28268d6366d1d9c231ab57ff0159d;hp=0ec3fc86d37f6fcd3ba12f8b13526d99642e6d3a;hpb=ba86b61e50c76d266b3d178f7040992c188df458;p=picodrive.git diff --git a/platform/common/input.c b/platform/common/input.c index 0ec3fc8..eda86d4 100644 --- a/platform/common/input.c +++ b/platform/common/input.c @@ -5,9 +5,16 @@ #include "input.h" #include "plat.h" #include "lprintf.h" + +#ifdef IN_EVDEV #include "../linux/in_evdev.h" +#endif +#ifdef IN_GP2X #include "../gp2x/in_gp2x.h" +#endif +#ifdef IN_VK #include "../win32/in_vk.h" +#endif typedef struct { @@ -251,9 +258,11 @@ int in_update(int *result) ret |= in_gp2x_update(dev->drv_data, dev->binds, result); break; #endif +#ifdef IN_VK case IN_DRVID_VK: ret |= in_vk_update(dev->drv_data, dev->binds, result); break; +#endif } } } @@ -814,7 +823,9 @@ void in_init(void) #ifdef IN_EVDEV in_evdev_init(&in_drivers[IN_DRVID_EVDEV]); #endif +#ifdef IN_VK in_vk_init(&in_drivers[IN_DRVID_VK]); +#endif } #if 0