This is meant to be an internal class, not something that the library user will use.
More...
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__()
def bridges.input_helper.InputHelper.__init__ |
( |
|
self | ) |
|
Constructor.
All key initializations done here.
◆ a()
def bridges.input_helper.InputHelper.a |
( |
|
self | ) |
|
Get the 'a' (space) key.
- Returns
- the 'a' key
◆ d()
def bridges.input_helper.InputHelper.d |
( |
|
self | ) |
|
Get the 'd' (space) key.
- Returns
- the 'd' key
◆ down()
def bridges.input_helper.InputHelper.down |
( |
|
self | ) |
|
Get the down arrow key.
- Returns
- the 'Down Arrow' key
◆ key_press()
def bridges.input_helper.InputHelper.key_press |
( |
|
self, |
|
|
|
keypress |
|
) |
| |
◆ left()
def bridges.input_helper.InputHelper.left |
( |
|
self | ) |
|
Get the left arrow key.
- Returns
- the 'Left Arrow' key
◆ q()
def bridges.input_helper.InputHelper.q |
( |
|
self | ) |
|
Get the 'q' arrow key.
- Returns
- the 'q' key
◆ right()
def bridges.input_helper.InputHelper.right |
( |
|
self | ) |
|
Get the right arrow key.
- Returns
- the 'Right Arrow' key
◆ s()
def bridges.input_helper.InputHelper.s |
( |
|
self | ) |
|
Get the 's' (space) key.
- Returns
- the 's' key
◆ space()
def bridges.input_helper.InputHelper.space |
( |
|
self | ) |
|
Get the ' ' (space) key.
- Returns
- the 'Space' key
◆ status()
def bridges.input_helper.InputHelper.status |
( |
|
self | ) |
|
◆ up()
def bridges.input_helper.InputHelper.up |
( |
|
self | ) |
|
Get the up arrow key.
- Returns
- the 'Up Arrow' key
◆ w()
def 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: