NDSummary.OnToolTipsLoaded("File:input.h",{1083:"
Direct access to joystick
",1084:"
u8 Joystick_Read(
u8 port
) __FASTCALL __PRESERVES(b, c, d, e, h, iyl, iyh)
Gets current joystick information
",1085:"
void Joystick_Update()
Updates both joystick stats at once and stores the result Only available when INPUT_JOY_UPDATE is TRUE
",1086:"
inline u8 Joystick_GetDirection(
u8 port
)
Gets current direction of the given joystick If INPUT_JOY_UPDATE is TRUE, this function uses data retrieved by Joystick_Update().  Otherwise, this function reads I/O data.
",1087:"
inline u8 Joystick_GetDirectionChange(
u8 port
)
Gets current direction of the given joystick if different from previous one Only available if INPUT_JOY_UPDATE is TRUE.
",1088:"
inline bool Joystick_IsButtonPressed(
u8 port,
u8 trigger
)
Gets current trigger status of the given joystick If INPUT_JOY_UPDATE is TRUE, this function uses data retrieved by Joystick_Update().  Otherwise, this function read I/O data.
",1089:"
inline bool Joystick_IsButtonPushed(
u8 port,
u8 trigger
)
Gets current trigger status of the given joystick Only available if INPUT_JOY_UPDATE is TRUE.
",1090:"
General purpose port device detection
",1091:"
u8 Input_Detect(
enum INPUT_PORT port
)
Detect device plugged in General purpose ports
",1092:"
Direct access to mouse
",1093:"
void Mouse_Read(
u8 port,
Mouse_State* data
)
Gets current mouse information
",1094:"
inline i8 Mouse_GetOffsetX(
Mouse_State* data
)
Gets current mouse X offset
",1095:"
inline i8 Mouse_GetOffsetY(
Mouse_State* data
)
Gets current mouse Y offset
",1096:"
inline i8 Mouse_GetAdjustedOffsetX(
Mouse_State* data,
u8 spd
)
Gets current mouse X offset adjusted by speed
",1097:"
inline i8 Mouse_GetAdjustedOffsetY(
Mouse_State* data,
u8 spd
)
Gets current mouse Y offset adjusted by speed
",1098:"
inline bool Mouse_IsButtonPress(
Mouse_State* data,
u8 btn
)
Check if mouse button is pressed
",1099:"
inline bool Mouse_IsButtonClick(
Mouse_State* data,
u8 btn
)
Check if mouse button is clicked
",1100:"
Direct access to keyboard
",1101:"
enum KEY_ID
Value encoded by combining a row number with a given physical key index in that row Can be KEY_1, KEY_SPACE, KEY_A, KEY_F1, etc.
",1102:"
u8 Keyboard_Read(
u8 row
) __FASTCALL __PRESERVES(b, c, d, e, h, iyl, iyh)
Reads keyboard matrix row
",1103:"
inline void Keyboard_SetBuffer(
u8* new,
u8* old
)
Set the buffer to store keyboard state
",1104:"
void Keyboard_Update()
Updates all keyboard rows at once Only available when INPUT_KB_UPDATE is TRUE
",1105:"
bool Keyboard_IsKeyPressed(
u8 key
)
When INPUT_KB_UPDATE is TRUE, this function uses data retrieved by Keyboard_Update() function Otherwise, the function reads the key\'s row before checking the key.
",1106:"
bool Keyboard_IsKeyPushed(
u8 key
)
Checks if a given key was just pushed Only available when INPUT_KB_UPDATE is TRUE
"});