metaforce/Runtime/Input/IController.hpp

25 lines
364 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_ICONTROLLER_HPP__
#define __URDE_ICONTROLLER_HPP__
2015-08-28 00:11:31 +00:00
2015-08-29 01:30:47 +00:00
#include "../RetroTypes.hpp"
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-28 00:11:31 +00:00
{
class IController
{
public:
2015-11-21 01:16:07 +00:00
enum class EMotorState
2015-08-28 00:11:31 +00:00
{
2015-11-21 01:16:07 +00:00
Stop = 0,
Rumble = 1,
StopHard = 2
2015-08-28 00:11:31 +00:00
};
2015-08-29 01:30:47 +00:00
virtual void Poll()=0;
virtual void SetMotorState(EMotorState state)=0;
2015-08-28 00:11:31 +00:00
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_ICONTROLLER_HPP__