Bridges-Python  3.4.4
Bridges(Python API)
Public Member Functions | Public Attributes | List of all members
bridges.input_helper.InputHelper Class Reference
Inheritance diagram for bridges.input_helper.InputHelper:
bridges.keypress_listener.KeyPressListener

Detailed Description

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

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def key_press (self, keypress)
 Record a key press event. More...
 
def status (self)
 
def up (self)
 Get the up arrow key. More...
 
def down (self)
 Get the down arrow key. More...
 
def left (self)
 Get the left arrow key. More...
 
def right (self)
 Get the right arrow key. More...
 
def q (self)
 Get the 'q' arrow key. More...
 
def space (self)
 Get the ' ' (space) key. More...
 
def w (self)
 Get the 'w' (space) key. More...
 
def a (self)
 Get the 'a' (space) key. More...
 
def s (self)
 Get the 's' (space) key. More...
 
def d (self)
 Get the 'd' (space) key. More...
 

Public Attributes

 up_key
 
 down_key
 
 left_key
 
 right_key
 
 q_key
 
 space_key
 
 w_key
 
 a_key
 
 s_key
 
 d_key
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.input_helper.InputHelper.__init__ (   self)

Constructor.

All key initializations done here.

Member Function Documentation

◆ 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 
)

Record a key press event.

Parameters
keypresskeypress event

Reimplemented from bridges.keypress_listener.KeyPressListener.

◆ 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

Member Data Documentation

◆ 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: