This is meant to be an internal class, not something that the library user will use.
More...
|
| | __init__ (self) |
| | Constructor.
|
| |
| | key_press (self, keypress) |
| | Record a key press event.
|
| |
| | status (self) |
| |
| | up (self) |
| | Get the up arrow key.
|
| |
| | down (self) |
| | Get the down arrow key.
|
| |
| | left (self) |
| | Get the left arrow key.
|
| |
| | right (self) |
| | Get the right arrow key.
|
| |
| | q (self) |
| | Get the 'q' arrow key.
|
| |
| | space (self) |
| | Get the ' ' (space) key.
|
| |
| | w (self) |
| | Get the 'w' (space) key.
|
| |
| | a (self) |
| | Get the 'a' (space) key.
|
| |
| | s (self) |
| | Get the 's' (space) key.
|
| |
| | d (self) |
| | Get the 'd' (space) key.
|
| |
This is meant to be an internal class, not something that the library user will use.
This class provide input device (mouse and keyboard) handling for Bridges games
- See also
- See the Games Tutorials at https://bridgesuncc.github.io/tutorials/NonBlockingGame.html for more information on keys and mouse device usage.
- Author
- Erik Saule, David Burlinson
- Date
- 2018, 2019, 2020, 1/2/21
◆ __init__()
| bridges.input_helper.InputHelper.__init__ |
( |
|
self | ) |
|
Constructor.
All key initializations done here.
◆ a()
| bridges.input_helper.InputHelper.a |
( |
|
self | ) |
|
Get the 'a' (space) key.
- Returns
- the 'a' key
◆ d()
| bridges.input_helper.InputHelper.d |
( |
|
self | ) |
|
Get the 'd' (space) key.
- Returns
- the 'd' key
◆ down()
| bridges.input_helper.InputHelper.down |
( |
|
self | ) |
|
Get the down arrow key.
- Returns
- the 'Down Arrow' key
◆ key_press()
| bridges.input_helper.InputHelper.key_press |
( |
|
self, |
|
|
|
keypress |
|
) |
| |
◆ left()
| bridges.input_helper.InputHelper.left |
( |
|
self | ) |
|
Get the left arrow key.
- Returns
- the 'Left Arrow' key
◆ q()
| bridges.input_helper.InputHelper.q |
( |
|
self | ) |
|
Get the 'q' arrow key.
- Returns
- the 'q' key
◆ right()
| bridges.input_helper.InputHelper.right |
( |
|
self | ) |
|
Get the right arrow key.
- Returns
- the 'Right Arrow' key
◆ s()
| bridges.input_helper.InputHelper.s |
( |
|
self | ) |
|
Get the 's' (space) key.
- Returns
- the 's' key
◆ space()
| bridges.input_helper.InputHelper.space |
( |
|
self | ) |
|
Get the ' ' (space) key.
- Returns
- the 'Space' key
◆ status()
| bridges.input_helper.InputHelper.status |
( |
|
self | ) |
|
◆ up()
| bridges.input_helper.InputHelper.up |
( |
|
self | ) |
|
Get the up arrow key.
- Returns
- the 'Up Arrow' key
◆ w()
| bridges.input_helper.InputHelper.w |
( |
|
self | ) |
|
Get the 'w' (space) key.
- Returns
- the 'w' key
◆ a_key
| bridges.input_helper.InputHelper.a_key |
◆ d_key
| bridges.input_helper.InputHelper.d_key |
◆ down_key
| bridges.input_helper.InputHelper.down_key |
◆ left_key
| bridges.input_helper.InputHelper.left_key |
◆ q_key
| bridges.input_helper.InputHelper.q_key |
◆ right_key
| bridges.input_helper.InputHelper.right_key |
◆ s_key
| bridges.input_helper.InputHelper.s_key |
◆ space_key
| bridges.input_helper.InputHelper.space_key |
◆ up_key
| bridges.input_helper.InputHelper.up_key |
◆ w_key
| bridges.input_helper.InputHelper.w_key |
The documentation for this class was generated from the following file: