/* * Class: org_gamepad4j_desktop_GamepadJniWrapper * Method: natDetectPads * Signature: ()V */ JNIEXPORT void JNICALL Java_org_gamepad4j_desktop_GamepadJniWrapper_natDetectPads (JNIEnv *env, jobject obj) { Gamepad_detectDevices(); // The following call is required on Windows Gamepad_processEvents(); return; }
void GHID::onEnterFrame(int type, void *event, void *udata) { if(type == GEVENT_PRE_TICK_EVENT) { Gamepad_detectDevices(); Gamepad_processEvents(); } }
void JoystickHandler::UpdateJoystick() { Gamepad_detectDevices(); Gamepad_processEvents(); }