Files
kaizen/lib/source/gainput/pad/GainputInputDevicePadIos.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

61 lines
1.2 KiB
C++

#ifndef GAINPUTINPUTDEVICEPADIOS_H_
#define GAINPUTINPUTDEVICEPADIOS_H_
#include <gainput/GainputContainers.h>
namespace gainput
{
class InputDevicePadImplIos : public InputDevicePadImpl
{
public:
InputDevicePadImplIos(InputManager& manager, InputDevice& device, unsigned index, InputState& state, InputState& previousState);
~InputDevicePadImplIos();
InputDevice::DeviceVariant GetVariant() const
{
return InputDevice::DV_STANDARD;
}
void Update(InputDeltaState* delta);
InputDevice::DeviceState GetState() const
{
return deviceState_;
}
bool IsValidButton(DeviceButtonId deviceButton) const;
typedef gainput::Array<void *> GlobalControllerList;
static GlobalControllerList* mappedControllers_;
bool Vibrate(float leftMotor, float rightMotor)
{
return false;
}
private:
InputManager& manager_;
InputDevice& device_;
unsigned index_;
InputState& state_;
InputState& previousState_;
InputDevice::DeviceState deviceState_;
bool pausePressed_;
bool isMicro_;
bool isNormal_;
bool isExtended_;
bool supportsMotion_;
bool isRemote_;
void* gcController_;
void UpdateRemote_(InputDeltaState* delta);
void UpdateGamepad_(InputDeltaState* delta);
};
}
#endif