diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-09-01 02:22:21 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-09-01 02:22:21 -0700 |
commit | 567e103d28010aac619c0a387e3422734d0c8653 (patch) | |
tree | d5a02fbab5e11481a19884215d91799f8fdce2d1 /src/library_sdl.js | |
parent | 02cfae8fdda8f6916ae12c6cda947a7aa2084014 (diff) |
misc in.h and SDL joystick stubs
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index d6cb6d18..9231f41b 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -2191,11 +2191,37 @@ var LibrarySDL = { // Joysticks - SDL_NumJoysticks: function() { return 0 }, + SDL_NumJoysticks: function() { return 0; }, - SDL_JoystickOpen: function(deviceIndex) { return 0 }, + SDL_JoystickName: function(deviceIndex) { return 0; }, - SDL_JoystickGetButton: function(joystick, button) { return 0 }, + SDL_JoystickOpen: function(deviceIndex) { return 0; }, + + SDL_JoystickOpened: function(deviceIndex) { return 0; }, + + SDL_JoystickIndex: function(joystick) { return 0; }, + + SDL_JoystickNumAxes: function(joystick) { return 0; }, + + SDL_JoystickNumBalls: function(joystick) { return 0; }, + + SDL_JoystickNumHats: function(joystick) { return 0; }, + + SDL_JoystickNumButtons: function(joystick) { return 0; }, + + SDL_JoystickUpdate: function() {}, + + SDL_JoystickEventState: function(state) { return 0; }, + + SDL_JoystickGetAxis: function(joystick, axis) { return 0; }, + + SDL_JoystickGetHat: function(joystick, hat) { return 0; }, + + SDL_JoystickGetBall: function(joystick, ball, dxptr, dyptr) { return -1; }, + + SDL_JoystickGetButton: function(joystick, button) { return 0; }, + + SDL_JoystickClose: function(joystick) {}, // Misc |