Skip to content

Commit

Permalink
MoprhOS: add MORPHOS_JoystickIsDevicePresent
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 committed Mar 9, 2024
1 parent a3d3e4f commit 35b5b93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/joystick/morphos/SDL_sysjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ static void MORPHOS_JoystickDetect(void)
{
}

static SDL_bool MORPHOS_JoystickIsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version, const char *name)
{
return SDL_FALSE;
}

static const char *MORPHOS_JoystickGetDeviceName(int device_index)
{
APTR sensor = JoySensor[device_index];
Expand Down Expand Up @@ -465,6 +470,7 @@ SDL_JoystickDriver SDL_MORPHOS_JoystickDriver =
MORPHOS_JoystickInit,
MORPHOS_JoystickGetCount,
MORPHOS_JoystickDetect,
MORPHOS_JoystickIsDevicePresent,
MORPHOS_JoystickGetDeviceName,
MORPHOS_JoystickGetDevicePath,
MORPHOS_JoystickGetDeviceSteamVirtualGamepadSlot,
Expand Down

0 comments on commit 35b5b93

Please sign in to comment.