git-subtree-dir: external/gainput git-subtree-split: 2be0a50089eafcc6fccb66142180082e48f27f4c
53 lines
918 B
C++
53 lines
918 B
C++
|
|
#ifndef GAINPUTINPUTDEVICEBUILTINIOS_H_
|
|
#define GAINPUTINPUTDEVICEBUILTINIOS_H_
|
|
|
|
|
|
namespace gainput
|
|
{
|
|
|
|
class InputDeviceBuiltInImplIos : public InputDeviceBuiltInImpl
|
|
{
|
|
public:
|
|
InputDeviceBuiltInImplIos(InputManager& manager, InputDevice& device, unsigned index, InputState& state, InputState& previousState);
|
|
~InputDeviceBuiltInImplIos();
|
|
|
|
InputDevice::DeviceVariant GetVariant() const
|
|
{
|
|
return InputDevice::DV_STANDARD;
|
|
}
|
|
|
|
void Update(InputDeltaState* delta);
|
|
|
|
InputDevice::DeviceState GetState() const
|
|
{
|
|
return deviceState_;
|
|
}
|
|
|
|
bool IsValidButton(DeviceButtonId deviceButton) const;
|
|
|
|
bool Vibrate(float leftMotor, float rightMotor)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool pausePressed_;
|
|
|
|
private:
|
|
InputManager& manager_;
|
|
InputDevice& device_;
|
|
unsigned index_;
|
|
bool padFound_;
|
|
InputState& state_;
|
|
InputState& previousState_;
|
|
InputDevice::DeviceState deviceState_;
|
|
|
|
void* motionManager_;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|