2 #ifndef GAINPUTINPUTDEVICEPAD_H_ 3 #define GAINPUTINPUTDEVICEPAD_H_ 9 enum { MaxPadCount = 10 };
46 PadButtonAccelerationX,
47 PadButtonAccelerationY,
48 PadButtonAccelerationZ,
55 PadButtonMagneticFieldX,
56 PadButtonMagneticFieldY,
57 PadButtonMagneticFieldZ,
59 PadButtonAxisCount_ = PadButtonStart,
92 PadButtonCount_ = PadButtonMax_ - PadButtonAxisCount_
95 class InputDevicePadImpl;
111 static const char* PadDeviceIds[MaxPadCount];
131 size_t GetAnyButtonDown(
DeviceButtonSpec* outButtons,
size_t maxButtonCount)
const;
133 size_t GetButtonName(
DeviceButtonId deviceButton,
char* buffer,
size_t bufferLength)
const;
145 bool Vibrate(
float leftMotor,
float rightMotor);
156 InputDevicePadImpl* impl_;