source: trunk/src/input/keyboard.h @ 2810

Last change on this file since 2810 was 2810, checked in by benlitz, 8 years ago

Completely reworked input system. Unified device interface, button, axis and cursor support, controller and binding system, mouse capture. Tutorial 07_input provided. Require to compile lolcore with LOL_INPUT_V2 to be activated (also needed app-side before including core.h)

  • Property svn:keywords set to Id
File size: 809 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11//
12// The Keyboard class
13// ------------------
14//
15
16#if !defined __LOL_INPUT_KEYBOARD_H__
17#define __LOL_INPUT_KEYBOARD_H__
18
19#ifndef LOL_INPUT_V2
20
21#include "entity.h"
22
23namespace lol
24{
25
26class KeyboardData;
27
28class Keyboard : public Entity
29{
30    friend class Input;
31
32public:
33    void PushChar(uint32_t ch);
34    uint32_t PopChar();
35
36private:
37    Keyboard();
38    ~Keyboard();
39    KeyboardData *m_data;
40};
41
42} /* namespace lol */
43
44#endif // !LOL_INPUT_V2
45
46#endif // __LOL_INPUT_KEYBOARD_H__
47
Note: See TracBrowser for help on using the repository browser.