Skip to content

Commit

Permalink
MorphOS: update joystick and libiconv
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 committed Jan 5, 2024
1 parent cc609e7 commit 3df436b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/SDL_config_morphos.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
/* #undef HAVE_GETPAGESIZE */
#define HAVE_MPROTECT 1
#define HAVE_ICONV 1
#define SDL_USE_LIBICONV 1
/* #undef HAVE_PTHREAD_SETNAME_NP */
/* #undef HAVE_PTHREAD_SET_NAME_NP */
/* #undef HAVE_SEM_TIMEDWAIT */
Expand Down
11 changes: 9 additions & 2 deletions src/joystick/morphos/SDL_sysjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ SDL_MORPHOS_JoystickGetDevicePath(int device_index)
return NULL;
}

static int
SDL_MORPHOS_JoystickGetDeviceSteamVirtualGamepadSlot(int device_index)
{
return -1;
}

static int
SDL_MORPHOS_JoystickGetDevicePlayerIndex(int device_index)
{
Expand Down Expand Up @@ -477,7 +483,7 @@ SDL_MORPHOS_JoystickQuit(void)
}

static SDL_bool
SDL_MORPHOS_GetGamepadMapping(int device_index, SDL_GamepadMapping * out)
SDL_MORPHOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping * out)
{
return SDL_FALSE;
}
Expand All @@ -489,6 +495,7 @@ SDL_JoystickDriver SDL_MORPHOS_JoystickDriver =
SDL_MORPHOS_JoystickDetect,
SDL_MORPHOS_JoystickGetDeviceName,
SDL_MORPHOS_JoystickGetDevicePath,
SDL_MORPHOS_JoystickGetDeviceSteamVirtualGamepadSlot,
SDL_MORPHOS_JoystickGetDevicePlayerIndex,
SDL_MORPHOS_JoystickSetDevicePlayerIndex,
SDL_MORPHOS_JoystickGetDeviceGUID,
Expand All @@ -503,7 +510,7 @@ SDL_JoystickDriver SDL_MORPHOS_JoystickDriver =
SDL_MORPHOS_JoystickUpdate,
SDL_MORPHOS_JoystickClose,
SDL_MORPHOS_JoystickQuit,
SDL_MORPHOS_GetGamepadMapping
SDL_MORPHOS_JoystickGetGamepadMapping
};

#endif

0 comments on commit 3df436b

Please sign in to comment.