Merge pull request #3081 from lioncash/si-enum
SI_Device: Convert define constants over to enums
This commit is contained in:
commit
40da69d5a2
|
@ -9,17 +9,26 @@
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
|
||||||
// Devices can reply with these
|
// Devices can reply with these
|
||||||
#define SI_ERROR_NO_RESPONSE 0x0008 // Nothing is attached
|
enum
|
||||||
#define SI_ERROR_UNKNOWN 0x0040 // Unknown device is attached
|
{
|
||||||
#define SI_ERROR_BUSY 0x0080 // Still detecting
|
SI_ERROR_NO_RESPONSE = 0x0008, // Nothing is attached
|
||||||
|
SI_ERROR_UNKNOWN = 0x0040, // Unknown device is attached
|
||||||
|
SI_ERROR_BUSY = 0x0080 // Still detecting
|
||||||
|
};
|
||||||
|
|
||||||
// Device types
|
// Device types
|
||||||
#define SI_TYPE_MASK 0x18000000u // ???
|
enum
|
||||||
#define SI_TYPE_GC 0x08000000u
|
{
|
||||||
|
SI_TYPE_MASK = 0x18000000, // ???
|
||||||
|
SI_TYPE_GC = 0x08000000
|
||||||
|
};
|
||||||
|
|
||||||
// GC Controller types
|
// GC Controller types
|
||||||
#define SI_GC_NOMOTOR 0x20000000u // No rumble motor
|
enum
|
||||||
#define SI_GC_STANDARD 0x01000000u
|
{
|
||||||
|
SI_GC_NOMOTOR = 0x20000000, // No rumble motor
|
||||||
|
SI_GC_STANDARD = 0x01000000
|
||||||
|
};
|
||||||
|
|
||||||
// SI Device IDs for emulator use
|
// SI Device IDs for emulator use
|
||||||
enum TSIDevices
|
enum TSIDevices
|
||||||
|
|
Loading…
Reference in New Issue