Files
kaizen/lib/source/gainput/pad/GainputInputDevicePadMac.h
Simone 4e42229bdd Squashed 'external/gainput/' content from commit 2be0a50
git-subtree-dir: external/gainput
git-subtree-split: 2be0a50089eafcc6fccb66142180082e48f27f4c
2024-01-22 08:51:55 +01:00

58 lines
1.1 KiB
C++

#ifndef GAINPUTINPUTDEVICEPADMAC_H_
#define GAINPUTINPUTDEVICEPADMAC_H_
namespace gainput
{
class InputDevicePadImplMac : public InputDevicePadImpl
{
public:
InputDevicePadImplMac(InputManager& manager, InputDevice& device, unsigned index, InputState& state, InputState& previousState);
~InputDevicePadImplMac();
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;
}
HashMap<unsigned, DeviceButtonId> buttonDialect_;
HashMap<unsigned, DeviceButtonId> axisDialect_;
float minAxis_;
float maxAxis_;
float minTriggerAxis_;
float maxTriggerAxis_;
InputManager& manager_;
InputDevice& device_;
unsigned index_;
InputState& state_;
InputState& previousState_;
InputState nextState_;
InputDeltaState* delta_;
InputDevice::DeviceState deviceState_;
void* ioManager_;
private:
};
}
#endif