source: trunk/src/joystick.cpp @ 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: 456 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6#if defined HAVE_CONFIG_H
7#   include "config.h"
8#endif
9
10#include <SDL.h>
11
12#include "joystick.h"
13
14/*
15 * Joystick implementation class
16 */
17
18class JoystickData
19{
20    friend class Joystick;
21
22private:
23    int dummy;
24};
25
26/*
27 * Public Joystick class
28 */
29
30Joystick::Joystick()
31{
32    data = new JoystickData();
33
34    SDL_WM_GrabInput(SDL_GRAB_ON);
35}
36
37Joystick::~Joystick()
38{
39}
40
Note: See TracBrowser for help on using the repository browser.