| 1ff0643 by Enrico Ros at 2009-02-20 |
1 |
/*************************************************************************** |
| 0e5745d by Enrico Ros at 2009-05-31 |
2 |
* Copyright (c) 2009 Enrico Ros * |
|
3 |
* 2009 Enrico Ros <enrico.ros@email.it> * |
|
4 |
* 2009 Alberto Scarpa <skaal.sl@gmail.com> * |
| 1ff0643 by Enrico Ros at 2009-02-20 |
5 |
* * |
|
6 |
* Permission is hereby granted, free of charge, to any person * |
|
7 |
* obtaining a copy of this software and associated documentation * |
|
8 |
* files (the "Software"), to deal in the Software without * |
|
9 |
* restriction, including without limitation the rights to use, * |
|
10 |
* copy, modify, merge, publish, distribute, sublicense, and/or sell * |
|
11 |
* copies of the Software, and to permit persons to whom the * |
|
12 |
* Software is furnished to do so, subject to the following * |
|
13 |
* conditions: * |
|
14 |
* * |
|
15 |
* The above copyright notice and this permission notice shall be * |
|
16 |
* included in all copies or substantial portions of the Software. * |
|
17 |
* * |
|
18 |
***************************************************************************/ |
|
19 |
|
| 0e5745d by Enrico Ros at 2009-05-31 |
20 |
#ifndef __InputUtils_h__ |
|
21 |
#define __InputUtils_h__ |
| 1ff0643 by Enrico Ros at 2009-02-20 |
22 |
|
|
23 |
#include <QObject> |
|
24 |
#include <QPoint> |
|
25 |
|
|
26 |
class InputUtils : public QObject |
|
27 |
{ |
|
28 |
public: |
|
29 |
// MOUSE |
|
30 |
static void mouseLeftClick(); |
|
31 |
//static void mouseRightClick(); |
|
32 |
static void mouseLeftPress(); |
|
33 |
static void mouseLeftRelease(); |
|
34 |
static void mouseMove( int x, int y ); |
|
35 |
static inline void mouseMove( const QPoint & point ) { mouseMove( point.x(), point.y() ); } |
|
36 |
|
|
37 |
// KEYBOARD |
|
38 |
static void keyWrite( const QString & string ); |
| c03b1c8 by Enrico Ros on Win32 at 2009-06-03 |
39 |
static void keyClick( const QChar & singleChar ); |
| a6ab1de by Enrico Ros at 2009-02-21 |
40 |
static void keyClickSpecial( int qtKeyCode ); |
| 1ff0643 by Enrico Ros at 2009-02-20 |
41 |
//static void keyPress( int qtKeycode ); |
|
42 |
//static void keyRelease( int qtKeycode ); |
|
43 |
}; |
|
44 |
|
|
45 |
#endif // INPUTUTILS_H |