Skip to content
Discussion options

You must be logged in to vote

Those assertions are related to a data structure size optimization I implemented so that all of the related structures could be passed around by value very efficiently. It's a low-level optimization that most likely makes no difference whatsoever for your use case.

In files like ControllerTypes.h you will see some structures defined using bit-fields, like this:

struct
{
/// Number of axes in the virtual controller, also the number of elements of the axis type
/// array that are valid.
uint8_t numAxes : 3;
/// Number of buttons present in the virtual controller.
uint8_t n…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joao678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants