KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
key_state_t Union Reference

Keyboard Key State. More...

#include <keyboard.h>

Data Fields

struct { 
 
   bool   is_down: 1 
 Whether down the current frame. More...
 
   bool   was_down: 1 
 Whether down the previous frame. More...
 
   uint8_t   : 6 
 
};  
 Convenience Bitfields.
 
key_state_value_t value
 Enum for specific state.
 
uint8_t raw
 Packed 8-bit unsigned integer of bitflags.
 

Detailed Description

Keyboard Key State.

Union containing the the previous and current frames' state information for a keyboard key.

See also
Flags, key_state_value_t, kbd_state::key_states

Field Documentation

◆ [struct]

struct { ... } key_state_t

Convenience Bitfields.

◆ __pad0__

uint8_t key_state_t::__pad0__

◆ is_down

bool key_state_t::is_down

Whether down the current frame.

◆ raw

uint8_t key_state_t::raw

Packed 8-bit unsigned integer of bitflags.

◆ value

key_state_value_t key_state_t::value

Enum for specific state.

◆ was_down

bool key_state_t::was_down

Whether down the previous frame.


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