Bridges-C++  3.4.2
Bridges(C++ API)
Public Member Functions | Protected Member Functions | List of all members
bridges::game::InputHelper Class Reference

#include <InputHelper.h>

Inheritance diagram for bridges::game::InputHelper:
bridges::game::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, 12/28/20

Public Member Functions

bool keyUp () const
 
bool keyDown () const
 
bool keyLeft () const
 
bool keyRight () const
 
bool keyW () const
 
bool keyA () const
 
bool keyS () const
 
bool keyD () const
 
bool keyQ () const
 
bool keySpace () const
 

Protected Member Functions

virtual void keyup (std::string JSONmessage) override
 
virtual void keydown (std::string JSONmessage) override
 

Member Function Documentation

◆ keyA()

bool bridges::game::InputHelper::keyA ( ) const
inline

◆ keyD()

bool bridges::game::InputHelper::keyD ( ) const
inline

◆ keyDown()

bool bridges::game::InputHelper::keyDown ( ) const
inline

◆ keydown()

virtual void bridges::game::InputHelper::keydown ( std::string  JSONmessage)
inlineoverrideprotectedvirtual

◆ keyLeft()

bool bridges::game::InputHelper::keyLeft ( ) const
inline

◆ keyQ()

bool bridges::game::InputHelper::keyQ ( ) const
inline

◆ keyRight()

bool bridges::game::InputHelper::keyRight ( ) const
inline

◆ keyS()

bool bridges::game::InputHelper::keyS ( ) const
inline

◆ keySpace()

bool bridges::game::InputHelper::keySpace ( ) const
inline

◆ keyUp()

bool bridges::game::InputHelper::keyUp ( ) const
inline

◆ keyup()

virtual void bridges::game::InputHelper::keyup ( std::string  JSONmessage)
inlineoverrideprotectedvirtual

◆ keyW()

bool bridges::game::InputHelper::keyW ( ) const
inline

The documentation for this class was generated from the following file: