|
Monado OpenXR Runtime
|
Holds dpad binding state for a single interaction profile. More...
#include <oxr/actions/oxr_dpad_state.h>

Public Member Functions | |
| bool | oxr_dpad_state_init (struct oxr_dpad_state *state) |
| Initialises a dpad state, has to be zero init before a call to this function. | |
| struct oxr_dpad_entry * | oxr_dpad_state_get (struct oxr_dpad_state *state, uint64_t key) |
| Look for a entry in the state for the given action set key, returns NULL if no entry has been made for that action set. | |
| struct oxr_dpad_entry * | oxr_dpad_state_get_or_add (struct oxr_dpad_state *state, uint64_t key) |
| Look for a entry in the state for the given action set key, allocates a new entry if none was found. | |
| void | oxr_dpad_state_deinit (struct oxr_dpad_state *state) |
| Frees all state and entries attached to this dpad state. | |
| bool | oxr_dpad_state_clone (struct oxr_dpad_state *dst_dpad_state, const struct oxr_dpad_state *src_dpad_state) |
| Clones all oxr_dpad_state. | |
Data Fields | |
| struct u_hashmap_int * | uhi |
Holds dpad binding state for a single interaction profile.
| bool oxr_dpad_state_clone | ( | struct oxr_dpad_state * | dst_dpad_state, |
| const struct oxr_dpad_state * | src_dpad_state | ||
| ) |
Clones all oxr_dpad_state.
| dst_dpad_state | destination of cloning |
| src_dpad_state | source of cloning |
References u_hashmap_int_for_each().
Referenced by oxr_interaction_profile::oxr_interaction_profile_clone().
| void oxr_dpad_state_deinit | ( | struct oxr_dpad_state * | state | ) |
Frees all state and entries attached to this dpad state.
References u_hashmap_int_clear_and_call_for_each().
Referenced by oxr_xrSuggestInteractionProfileBindings().
| struct oxr_dpad_entry * oxr_dpad_state_get | ( | struct oxr_dpad_state * | state, |
| uint64_t | key | ||
| ) |
Look for a entry in the state for the given action set key, returns NULL if no entry has been made for that action set.
| struct oxr_dpad_entry * oxr_dpad_state_get_or_add | ( | struct oxr_dpad_state * | state, |
| uint64_t | key | ||
| ) |
Look for a entry in the state for the given action set key, allocates a new entry if none was found.
References U_TYPED_CALLOC.
| bool oxr_dpad_state_init | ( | struct oxr_dpad_state * | state | ) |
Initialises a dpad state, has to be zero init before a call to this function.
Referenced by oxr_xrSuggestInteractionProfileBindings().