| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | return r ^ (Uint32)0xFF000000L; |
| | | } |
| | | |
| | | static Uint32 crc32(const void *data, int count) |
| | | static Uint32 crc32(const void *data, size_t count) |
| | | { |
| | | Uint32 crc = 0; |
| | | int i; |
| | |
| | | } |
| | | |
| | | #ifdef SDL_JOYSTICK_HIDAPI |
| | | if (HIDAPI_IsDevicePresent(vendor_id, product_id, 0)) { |
| | | if (HIDAPI_IsDevicePresent(vendor_id, product_id, 0, name)) { |
| | | /* The HIDAPI driver is taking care of this device */ |
| | | return -1; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | static void ANDROID_JoystickDetect(); |
| | | static void ANDROID_JoystickDetect(void); |
| | | |
| | | static int |
| | | ANDROID_JoystickInit(void) |
| | |
| | | return -1; |
| | | } |
| | | |
| | | static void |
| | | ANDROID_JoystickSetDevicePlayerIndex(int device_index, int player_index) |
| | | { |
| | | } |
| | | |
| | | static SDL_JoystickGUID |
| | | ANDROID_JoystickGetDeviceGUID(int device_index) |
| | | { |
| | |
| | | } |
| | | |
| | | static int |
| | | ANDROID_JoystickRumble(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms) |
| | | ANDROID_JoystickRumble(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble) |
| | | { |
| | | return SDL_Unsupported(); |
| | | } |
| | |
| | | ANDROID_JoystickDetect, |
| | | ANDROID_JoystickGetDeviceName, |
| | | ANDROID_JoystickGetDevicePlayerIndex, |
| | | ANDROID_JoystickSetDevicePlayerIndex, |
| | | ANDROID_JoystickGetDeviceGUID, |
| | | ANDROID_JoystickGetDeviceInstanceID, |
| | | ANDROID_JoystickOpen, |