SDL: API to change mouse mode on the fly

This commit is contained in:
Sergii Pylypenko
2017-01-27 22:57:06 +02:00
parent fc3265c289
commit c23b64cdaf
5 changed files with 37 additions and 6 deletions

View File

@@ -134,9 +134,21 @@ enum {
/* TODO: more options, see Globals.java */
};
/* Set SDL Android-specifc option, such as video depth or mouse emulation mode. Most options require restarting the app. */
/* Set SDL Android-specifc option, and save it to SDL config file, such as video depth or mouse emulation mode. Most options require restarting the app. */
extern DECLSPEC void SDLCALL SDL_ANDROID_SetConfigOption(int option, int value);
/* Change mouse emulation mode, pass -1 to any option to keep the current value, this does not change SDL config file.
Currently only relativeMovement is processed, other options are ignored */
extern DECLSPEC void SDLCALL SDL_ANDROID_SetMouseEmulationMode(
int relativeMovement, int relativeMovementSpeed, int relativeMovementAcceleration,
int leftClickMode, int leftClickKey, int leftClickTimeout,
int rightClickMode, int rightClickKey, int rightClickTimeout,
int moveMouseWithJoystick, int moveMouseWithJoystickSpeed, int moveMouseWithJoystickAcceleration,
int moveMouseWithGyroscope, int moveMouseWithGyroscopeSpeed,
int forceHardwareMouse, int showScreenUnderFinger,
int fingerHover, int fingerHoverJitterFilter, int generateSubframeTouchEvents
);
#ifdef __cplusplus
}
#endif