RavEngine
Loading...
Searching...
No Matches
RavEngine::InputManager::AxisBinding Class Reference
Collaboration diagram for RavEngine::InputManager::AxisBinding:
[legend]

Public Member Functions

 AxisBinding (decltype(id) id, axisCallback fn, void *addr, CID c, float dz)
 
constexpr void operator() (float value, CID c_in) const
 
bool IsValid () const
 
constexpr bool operator== (const AxisBinding &other) const
 

Protected Attributes

axisCallback func
 
void * func_addr = nullptr
 
size_t id
 
CID controller
 
float deadzone = 0
 

Constructor & Destructor Documentation

◆ AxisBinding()

RavEngine::InputManager::AxisBinding::AxisBinding ( decltype(id)  id,
axisCallback  fn,
void *  addr,
CID  c,
float  dz 
)
inline

Create an ActionBinding object

Parameters
thisptrthe owning object to be bound to
fnthe lambda to execute
addrthe address of the original function on thisptr
cthe controller bitmask for this binding
dzthe binding deadzone filter range
scalethe scale factor to apply to the passed value

Member Function Documentation

◆ operator()()

constexpr void RavEngine::InputManager::AxisBinding::operator() ( float  value,
CID  c_in 
) const
inlineconstexpr

Execute this ActionBinding

Parameters
valuethe axis' value
c_inthe source controller

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