| 62 | // -------------------------------------------------------- |
| 63 | |
| 64 | struct XInputMap_Button { |
| 65 | constexpr XInputMap_Button(uint8_t i, uint8_t o) |
| 66 | : index(i), mask(BuildMask(o)) {} |
| 67 | const uint8_t index; |
| 68 | const uint8_t mask; |
| 69 | |
| 70 | private: |
| 71 | constexpr static uint8_t BuildMask(uint8_t offset) { |
| 72 | return (1 << offset); // Bitmask of bit to flip |
| 73 | } |
| 74 | }; |
| 75 | |
| 76 | static const XInputMap_Button Map_DpadUp(2, 0); |
| 77 | static const XInputMap_Button Map_DpadDown(2, 1); |
nothing calls this directly
no outgoing calls
no test coverage detected