source: trunk/src/joystick.h @ 112

Last change on this file since 112 was 100, checked in by sam, 11 years ago

Slightly improve the documentation in a few files, add the missing
joystick class, and put a header in each source file.

  • Property svn:keywords set to Id
File size: 512 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Joystick class
8// ------------------
9//
10
11#if !defined __DH_JOYSTICK_H__
12#define __DH_JOYSTICK_H__
13
14class JoystickData;
15
16class Joystick
17{
18public:
19    Joystick();
20    ~Joystick();
21
22    int GetState();
23
24    static int const NORTH = (1<<0);
25    static int const EAST  = (1<<1);
26    static int const SOUTH = (1<<2);
27    static int const WEST  = (1<<3);
28
29private:
30    JoystickData *data;
31};
32
33#endif // __DH_JOYSTICK_H__
34
Note: See TracBrowser for help on using the repository browser.