diff options
author | John Vilk <jvilk@cs.umass.edu> | 2013-11-06 22:08:33 -0500 |
---|---|---|
committer | John Vilk <jvilk@cs.umass.edu> | 2013-11-10 02:25:17 -0500 |
commit | 39b138d4ddda29b535285bc1c5223641dcacce28 (patch) | |
tree | 84684a42f652d043e03918034f7d3b972f45d84b /src/struct_info.json | |
parent | d446e2b3c3b96474106b9bd47f35d901abb14f6d (diff) |
[SDL] Joystick API implementation using HTML5 Gamepad API
Works in browsers that implement the working draft of the standard (current Chrome / Firefox stable):
http://www.w3.org/TR/2012/WD-gamepad-20120529/#gamepad-interface
...and browsers that implement the editor's draft (current Firefox Nightly):
https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#idl-def-Gamepad
Contains unit tests for both event types.
Diffstat (limited to 'src/struct_info.json')
-rw-r--r-- | src/struct_info.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/struct_info.json b/src/struct_info.json index 5b4726e8..f6499295 100644 --- a/src/struct_info.json +++ b/src/struct_info.json @@ -961,6 +961,21 @@ "x", "y" ], + "SDL_JoyAxisEvent": [ + "type", + "which", + "axis", + "padding1", + "padding2", + "value" + ], + "SDL_JoyButtonEvent": [ + "type", + "which", + "button", + "state", + "padding1" + ], "SDL_ResizeEvent": [ "type", "w", |