aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-09-01 02:22:21 -0700
committerAnthony Pesch <inolen@gmail.com>2013-09-01 02:22:21 -0700
commit567e103d28010aac619c0a387e3422734d0c8653 (patch)
treed5a02fbab5e11481a19884215d91799f8fdce2d1
parent02cfae8fdda8f6916ae12c6cda947a7aa2084014 (diff)
misc in.h and SDL joystick stubs
-rw-r--r--src/library.js18
-rw-r--r--src/library_sdl.js32
2 files changed, 47 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js
index 9d0c65d5..f953bc33 100644
--- a/src/library.js
+++ b/src/library.js
@@ -7193,7 +7193,25 @@ LibraryManager.library = {
}
},
+ // ==========================================================================
+ // net/if.h
+ // ==========================================================================
+
+ if_nametoindex: function(a) {
+ return 0;
+ },
+ if_indextoname: function(a, b) {
+ return 0;
+ },
+ if_nameindex: function() {
+ return 0;
+ },
+ if_freenameindex: function(a) {
+ },
+
+ // ==========================================================================
// netinet/in.h
+ // ==========================================================================
_in6addr_any:
'allocate([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC)',
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