123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- #ifndef _ps3enums_h
- #define _ps3enums_h
- #include "controllerEnums.h"
- #define PS3_REPORT_BUFFER_SIZE 48
- const uint8_t PS3_REPORT_BUFFER[PS3_REPORT_BUFFER_SIZE] PROGMEM = {
- 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xff, 0x27, 0x10, 0x00, 0x32,
- 0xff, 0x27, 0x10, 0x00, 0x32,
- 0xff, 0x27, 0x10, 0x00, 0x32,
- 0xff, 0x27, 0x10, 0x00, 0x32,
- 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
- };
- #define MOVE_REPORT_BUFFER_SIZE 7
- const uint8_t PS3_LEDS[] PROGMEM = {
- 0x00,
- 0x01,
- 0x02,
- 0x04,
- 0x08,
- 0x09,
- 0x0A,
- 0x0C,
- 0x0D,
- 0x0E,
- 0x0F,
- };
- const uint32_t PS3_BUTTONS[] PROGMEM = {
- 0x10,
- 0x20,
- 0x40,
- 0x80,
- 0x01,
- 0x08,
- 0x02,
- 0x04,
- 0x0100,
- 0x0200,
- 0x0400,
- 0x0800,
- 0x1000,
- 0x2000,
- 0x4000,
- 0x8000,
- 0x010000,
- 0x080000,
- 0x100000,
- };
- const uint8_t PS3_ANALOG_BUTTONS[] PROGMEM = {
- 23,
- 24,
- 25,
- 26,
- 0, 0, 0, 0,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 0, 0,
-
- 15,
- };
- enum StatusEnum {
-
-
- Plugged = (38 << 8) | 0x02,
- Unplugged = (38 << 8) | 0x03,
- Charging = (39 << 8) | 0xEE,
- NotCharging = (39 << 8) | 0xF1,
- Shutdown = (39 << 8) | 0x01,
- Dying = (39 << 8) | 0x02,
- Low = (39 << 8) | 0x03,
- High = (39 << 8) | 0x04,
- Full = (39 << 8) | 0x05,
- MoveCharging = (21 << 8) | 0xEE,
- MoveNotCharging = (21 << 8) | 0xF1,
- MoveShutdown = (21 << 8) | 0x01,
- MoveDying = (21 << 8) | 0x02,
- MoveLow = (21 << 8) | 0x03,
- MoveHigh = (21 << 8) | 0x04,
- MoveFull = (21 << 8) | 0x05,
- CableRumble = (40 << 8) | 0x10,
- Cable = (40 << 8) | 0x12,
- BluetoothRumble = (40 << 8) | 0x14,
- Bluetooth = (40 << 8) | 0x16,
- };
- #endif
|