forked from badman12345/osmose-rpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PaddleInputDevice.h
44 lines (36 loc) · 995 Bytes
/
PaddleInputDevice.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*****************************************************************************
*
* File: PadInputDevice.h
*
* Project: Osmose emulator.
*
* Description: This class handles input device Pad.
*
* Author: Vedder Bruno
* Date: 19/04/2005, 18h30
*
* URL: http://bcz.emu-france.com/
*****************************************************************************/
#ifndef PADDLE_INPUT_DEVICE_H
#define PADDLE_INPUT_DEVICE_H
#include "InputDevice.h"
#include "IOMapper.h"
#include "OsmoseConfiguration.h"
#define MAX_INCREMENT 10
#define MIN_INCREMENT 3
class PaddleInputDevice: public InputDevice
{
public:
IOMapper *iom;
OsmoseConfiguration *oc;
PaddleInputDevice(IOMapper *, OsmoseConfiguration *);
virtual ~PaddleInputDevice() {};
void handleDeviceChange(SDL_Event &);
void updateDevice();
void reset();
string getInputDeviceName();
private:
float increment; // increment.
float acceleration; // Acceleration factor.
};
#endif