git-subtree-dir: external/gainput git-subtree-split: 2be0a50089eafcc6fccb66142180082e48f27f4c
24 lines
559 B
C++
24 lines
559 B
C++
|
|
#ifndef GAINPUTINPUTDEVICEPADIMPL_H_
|
|
#define GAINPUTINPUTDEVICEPADIMPL_H_
|
|
|
|
namespace gainput
|
|
{
|
|
|
|
class InputDevicePadImpl
|
|
{
|
|
public:
|
|
virtual ~InputDevicePadImpl() { }
|
|
virtual InputDevice::DeviceVariant GetVariant() const = 0;
|
|
virtual InputDevice::DeviceState GetState() const { return InputDevice::DS_OK; }
|
|
virtual void Update(InputDeltaState* delta) = 0;
|
|
virtual bool IsValidButton(DeviceButtonId deviceButton) const = 0;
|
|
virtual bool Vibrate(float leftMotor, float rightMotor) = 0;
|
|
virtual InputState* GetNextInputState() { return 0; }
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|