-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use SDL_GameControllerGetType to determine controller type
- Loading branch information
Showing
8 changed files
with
108 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
namespace Foster.Framework; | ||
|
||
/// <summary> | ||
/// Type of Gamepads | ||
/// This is a 1-1 mapping with SDL_GameControllerType: | ||
/// https://github.com/libsdl-org/SDL/blob/release-2.30.x/include/SDL_gamecontroller.h#L61 | ||
/// </summary> | ||
public enum GamepadTypes | ||
{ | ||
Unknown = 0, | ||
Xbox360, | ||
XboxOne, | ||
PS3, | ||
PS4, | ||
NintendoSwitchPro, | ||
Virtual, | ||
PS5, | ||
AmazonLuna, | ||
GoogleStadia, | ||
NVidiaShield, | ||
NintendoSwitchJoyconLeft, | ||
NintendoSwitchJoyconRight, | ||
NintendoSwitchJoyconPair, | ||
} | ||
|
||
/// <summary> | ||
/// Types of GamePad Providers | ||
/// </summary> | ||
public enum GamepadProviders | ||
{ | ||
Unknown, | ||
Xbox, | ||
PlayStation, | ||
Nintendo | ||
} | ||
|
||
/// <summary> | ||
/// Known popular gamepad types | ||
/// </summary> | ||
[Obsolete("Use GamepadTypes or GamepadProviders instead")] | ||
public enum Gamepads | ||
{ | ||
Xbox, | ||
DualShock4, | ||
DualSense, | ||
Nintendo | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters