2 #ifndef GAINPUTBUTTONSTICKGESTURE_H_ 3 #define GAINPUTBUTTONSTICKGESTURE_H_ 5 #ifdef GAINPUT_ENABLE_BUTTON_STICK_GESTURE 11 enum ButtonStickAction
17 class GAINPUT_LIBEXPORT ButtonStickGesture :
public InputGesture
21 ButtonStickGesture(InputManager& manager,
DeviceId device,
unsigned index, DeviceVariant variant);
23 ~ButtonStickGesture();
29 bool IsValidButtonId(
DeviceButtonId deviceButton)
const {
return deviceButton == ButtonStickAxis; }
31 ButtonType GetButtonType(
DeviceButtonId deviceButton)
const { GAINPUT_UNUSED(deviceButton); GAINPUT_ASSERT(IsValidButtonId(deviceButton));
return BT_FLOAT; }
34 void InternalUpdate(InputDeltaState* delta);
37 DeviceButtonSpec negativeAxis_;
38 DeviceButtonSpec positiveAxis_;