Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ToyMaker::InputFilter Struct Reference

Filter that uniquely defines ONE axis of one control of one input belonging to one device. More...

#include <input_data.hpp>

Public Member Functions

bool operator== (const InputFilter &other) const
 Compares two input filters for equality.
 
bool operator< (const InputFilter &other) const
 A less than operator, mainly used for sorting and the equality operator.
 
 operator bool () const
 Provides explicit truthy-falsey mapping for this struct.
 

Public Attributes

InputSourceDescription mControl {}
 The control, one of whose axes is being filtered for, uniquely described by this InputFilter.
 
AxisFilter mAxisFilter { 0x0 }
 The axis of the control (and its value type) being filtered for.
 

Detailed Description

Filter that uniquely defines ONE axis of one control of one input belonging to one device.

Member Function Documentation

◆ operator bool()

ToyMaker::InputFilter::operator bool ( ) const
inline

Provides explicit truthy-falsey mapping for this struct.

Return values
trueIf this object describes a valid input;
falseIf this object does not describe a valid input
See also
InputSourceDescription::operator bool()

◆ operator<()

bool ToyMaker::InputFilter::operator< ( const InputFilter & other) const
inline

A less than operator, mainly used for sorting and the equality operator.

Parameters
otherThe filter this one is being compared to.
Return values
trueIf this filter is "less than"
falseIf this filter is not "less than"

◆ operator==()

bool ToyMaker::InputFilter::operator== ( const InputFilter & other) const
inline

Compares two input filters for equality.

Mainly used in special containers (like maps), and for sorting algorithms.

Parameters
otherThe input filter this one is being compared to.
Return values
trueIf the filters are the same.
falseIf the filters are not the same.

Member Data Documentation

◆ mAxisFilter

AxisFilter ToyMaker::InputFilter::mAxisFilter { 0x0 }

The axis of the control (and its value type) being filtered for.

See also
mControl

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