libyggdrasil  v1.0.0
joystick.h File Reference
Include dependency graph for joystick.h:

Go to the source code of this file.

Classes

struct  Position
 Signed position data. More...
 
struct  JoystickData
 Joystick data. More...
 

Functions

C_LINKAGE bool yggdrasil_Joystick_Init (void)
 Initialization function. More...
 
C_LINKAGE struct JoystickData yggdrasil_Joystick_GetLeft ()
 Get the joystick data for the left joystick. More...
 
C_LINKAGE struct JoystickData yggdrasil_Joystick_GetRight ()
 Get the joystick data for the right joystick. More...
 
C_LINKAGE void yggdrasil_Joystick_SetDeadzone (u8 deadzone)
 Set both joystick's deadzone. More...
 
C_LINKAGE u8 yggdrasil_Joystick_GetDeadzone (void)
 Get the current Joystick deadzone. More...
 

Function Documentation

◆ yggdrasil_Joystick_GetDeadzone()

C_LINKAGE u8 yggdrasil_Joystick_GetDeadzone ( void  )

Get the current Joystick deadzone.

Returns
Current deadzone value

◆ yggdrasil_Joystick_GetLeft()

C_LINKAGE struct JoystickData yggdrasil_Joystick_GetLeft ( )

Get the joystick data for the left joystick.

Returns
JoyStickData struct
Note
This function is polling

◆ yggdrasil_Joystick_GetRight()

C_LINKAGE struct JoystickData yggdrasil_Joystick_GetRight ( )

Get the joystick data for the right joystick.

Returns
JoyStickData struct
Note
This function is polling

◆ yggdrasil_Joystick_Init()

C_LINKAGE bool yggdrasil_Joystick_Init ( void  )

Initialization function.

Returns
Success

◆ yggdrasil_Joystick_SetDeadzone()

C_LINKAGE void yggdrasil_Joystick_SetDeadzone ( u8  deadzone)

Set both joystick's deadzone.

Parameters
deadzoneDeadzone value