kiba-engine
Data Fields
input_state Struct Reference

State of the input system. More...

Collaboration diagram for input_state:

Data Fields

b8 keys [KEY_CODE_MAX]
 State of keys on keypoard and mouse. More...
 
u32 mouse_x
 Mouse x position on screen.
 
u32 mouse_y
 Mouse y position on screen.
 
i8 mouse_wheel
 Mouse wheel direction. More...
 

Detailed Description

State of the input system.

Definition at line 15 of file input.c.

Field Documentation

◆ keys

b8 input_state::keys[KEY_CODE_MAX]

State of keys on keypoard and mouse.

0 indicates the key is up. 1 indicates down.

See also
key_code

Definition at line 23 of file input.c.

◆ mouse_wheel

i8 input_state::mouse_wheel

Mouse wheel direction.

0 : no input currently 1 : scrolling down -1: scrolling up

Definition at line 35 of file input.c.


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