Feature #1102 » keyboard_input.py
1 |
#!/usr/bin/env python
|
---|---|
2 |
# -*- coding: utf-8 -*-
|
3 |
# ˅
|
4 |
from mask_creator import MaskCreator |
5 |
|
6 |
|
7 |
|
8 |
# ˄
|
9 |
|
10 |
|
11 |
class KeyboardInput(object): |
12 |
# ˅
|
13 |
# \class KeyboardInput
|
14 |
# \brief This class handles keyboard input.
|
15 |
# It also provides a function to get the key pressed by the user.
|
16 |
|
17 |
# \author
|
18 |
# \version 1.0.0
|
19 |
# date 2024-10-19
|
20 |
|
21 |
# ˄
|
22 |
|
23 |
def getKeypress(self): |
24 |
# \brief This function reads the key pressed by the user
|
25 |
# \param self the object pointer
|
26 |
# \retval is None if no key is pressed
|
27 |
# \returns key pressed by the user
|
28 |
# ˅
|
29 |
pass
|
30 |
# ˄
|
31 |
|
32 |
# ˅
|
33 |
|
34 |
# ˄
|
35 |
|
36 |
|
37 |
# ˅
|
38 |
|
39 |
# ˄
|