Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_dpad_state Struct Reference

Holds dpad binding state for a single interaction profile. More...

#include <oxr/actions/oxr_dpad_state.h>

Collaboration diagram for oxr_dpad_state:

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_entryoxr_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_entryoxr_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_intuhi
 

Detailed Description

Holds dpad binding state for a single interaction profile.

Member Function Documentation

◆ oxr_dpad_state_clone()

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.

Parameters
dst_dpad_statedestination of cloning
src_dpad_statesource of cloning

References u_hashmap_int_for_each().

Referenced by oxr_interaction_profile::oxr_interaction_profile_clone().

◆ oxr_dpad_state_deinit()

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().

◆ oxr_dpad_state_get()

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.

◆ oxr_dpad_state_get_or_add()

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.

◆ oxr_dpad_state_init()

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().


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