YourGameLib
Loading...
Searching...
No Matches
Namespaces | Classes | Functions | Variables
yourgame_internal::input Namespace Reference

Namespaces

namespace  android
 
namespace  desktop
 

Classes

struct  InputValue
 

Functions

void setInput (yourgame::input::Source source, float value)
 set input value. used for buttons/keys if first input of source occurs, the last (previous) value is set to 0.0, resulting in positive value delta, if first input of source is "key down"
 
void setInput2 (yourgame::input::Source source, float value)
 set input value. used for positions/axes or other "continuous" signals if first input of source occurs, the last (previous) value is set to value, resulting in zero value delta after first input.
 
void tickInput ()
 

Variables

std::map< yourgame::input::Source, InputValueinputStates
 

Function Documentation

◆ setInput()

void yourgame_internal::input::setInput ( yourgame::input::Source  source,
float  value 
)

set input value. used for buttons/keys if first input of source occurs, the last (previous) value is set to 0.0, resulting in positive value delta, if first input of source is "key down"

◆ setInput2()

void yourgame_internal::input::setInput2 ( yourgame::input::Source  source,
float  value 
)

set input value. used for positions/axes or other "continuous" signals if first input of source occurs, the last (previous) value is set to value, resulting in zero value delta after first input.

◆ tickInput()

void yourgame_internal::input::tickInput ( )

Variable Documentation

◆ inputStates

std::map< yourgame::input::Source, InputValue > yourgame_internal::input::inputStates