mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 09:26:25 +00:00
Fixed button mapping for the HORIPAD S
This controller actually comes in at least two flavors: a GameCube controller and an arcade pad, neither of which should have the face buttons remapped.
This commit is contained in:
@@ -328,6 +328,11 @@ static SDL_bool
|
||||
AlwaysUsesLabels(int vendor_id, int product_id, ESwitchDeviceInfoControllerType eControllerType)
|
||||
{
|
||||
/* These controllers don't have a diamond button configuration, so always use labels */
|
||||
if (vendor_id == 0x0f0d && product_id == 0x00dc) {
|
||||
/* The HORIPAD S, which comes in two flavors: a GameCube style and an arcade pad style,
|
||||
* neither of which should have their buttons remapped */
|
||||
return SDL_TRUE;
|
||||
}
|
||||
switch (eControllerType) {
|
||||
case k_eSwitchDeviceInfoControllerType_NESLeft:
|
||||
case k_eSwitchDeviceInfoControllerType_NESRight:
|
||||
|
Reference in New Issue
Block a user