source: trunk/src/input.h @ 236

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

Mouse button support in Lol Engine.

  • Property svn:keywords set to Id
File size: 762 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 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://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Input static class
13// ----------------------
14//
15
16#if !defined __DH_INPUT_H__
17#define __DH_INPUT_H__
18
19#include "matrix.h"
20
21class Input
22{
23public:
24    static Float2 GetAxis(int axis);
25    static void SetMousePos(Int2 coord);
26    static Int2 GetMousePos();
27    static void SetMouseButton(int index);
28    static void UnsetMouseButton(int index);
29    static Int3 GetMouseButtons();
30};
31
32#endif // __DH_INPUT_H__
33
Note: See TracBrowser for help on using the repository browser.