2015-08-28 00:11:31 +00:00
|
|
|
#ifndef __RETRO_ICONTROLLER_HPP__
|
|
|
|
#define __RETRO_ICONTROLLER_HPP__
|
|
|
|
|
2015-08-29 01:30:47 +00:00
|
|
|
#include "../RetroTypes.hpp"
|
|
|
|
|
2015-08-28 00:11:31 +00:00
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
|
|
|
|
class IController
|
|
|
|
{
|
|
|
|
public:
|
2015-08-29 01:30:47 +00:00
|
|
|
enum EMotorState
|
2015-08-28 00:11:31 +00:00
|
|
|
{
|
2015-08-29 01:30:47 +00:00
|
|
|
MotorStop = 0,
|
|
|
|
MotorRumble = 1,
|
|
|
|
MotorStopHard = 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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __RETRO_ICONTROLLER_HPP__
|