Map on-screen keys to mouse buttons
This commit is contained in:
@@ -264,7 +264,16 @@ class SDL_1_2_Keycodes
|
||||
public static final int SDLK_EURO = 321;
|
||||
public static final int SDLK_UNDO = 322;
|
||||
|
||||
public static final int SDLK_NO_REMAP = 512;
|
||||
// Mouse buttons can be mapped to on-screen keys
|
||||
public static final int SDLK_MOUSE_LEFT = 500;
|
||||
public static final int SDLK_MOUSE_MIDDLE = 501;
|
||||
public static final int SDLK_MOUSE_RIGHT = 502;
|
||||
public static final int SDLK_MOUSE_WHEEL_UP = 503;
|
||||
public static final int SDLK_MOUSE_WHEEL_DOWN = 504;
|
||||
public static final int SDLK_MOUSE_X1 = 505;
|
||||
public static final int SDLK_MOUSE_X2 = 506;
|
||||
|
||||
public static final int SDLK_NO_REMAP = 512;
|
||||
}
|
||||
|
||||
// Autogenerated by hand with a command:
|
||||
@@ -511,7 +520,16 @@ class SDL_1_3_Keycodes
|
||||
public static final int SDLK_EJECT = 281;
|
||||
public static final int SDLK_SLEEP = 282;
|
||||
|
||||
public static final int SDLK_NO_REMAP = 512;
|
||||
// Mouse buttons can be mapped to on-screen keys
|
||||
public static final int SDLK_MOUSE_LEFT = 500;
|
||||
public static final int SDLK_MOUSE_MIDDLE = 501;
|
||||
public static final int SDLK_MOUSE_RIGHT = 502;
|
||||
public static final int SDLK_MOUSE_WHEEL_UP = 503;
|
||||
public static final int SDLK_MOUSE_WHEEL_DOWN = 504;
|
||||
public static final int SDLK_MOUSE_X1 = 505;
|
||||
public static final int SDLK_MOUSE_X2 = 506;
|
||||
|
||||
public static final int SDLK_NO_REMAP = 512;
|
||||
}
|
||||
|
||||
class SDL_Keys
|
||||
|
||||
Reference in New Issue
Block a user