Emscripten: Changed return type of callback implementations from int to EM_BOOL.
The prototypes are declared with EM_BOOL (which is currently an int) in html5.h.
This commit is contained in:
parent
83859b12ea
commit
34e9ba9c45
2 changed files with 13 additions and 13 deletions
|
@ -46,7 +46,7 @@ static SDL_joylist_item *SDL_joylist_tail = NULL;
|
|||
static int numjoysticks = 0;
|
||||
static int instance_counter = 0;
|
||||
|
||||
int
|
||||
EM_BOOL
|
||||
Emscripten_JoyStickConnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
|
||||
{
|
||||
int i;
|
||||
|
@ -127,7 +127,7 @@ Emscripten_JoyStickConnected(int eventType, const EmscriptenGamepadEvent *gamepa
|
|||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
EM_BOOL
|
||||
Emscripten_JoyStickDisconnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
|
||||
{
|
||||
SDL_joylist_item *item = SDL_joylist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue