Analog joypag functions.

Summary
Analog joypag functions.
Variables
JOY_ANALOG_BYTTONS_0Holds the state of A, B, SELECT, START and other unknown buttons...
JOY_ANALOG_BUTTONS_1May hold the states for other unknown buttons.
JOY_ANALOG_XValue of the analog stick horizontal axis.
JOY_ANALOG_YValue of the analog stick vertical axis.
JOY_ANALOG_SLIDERValue of the slider stick.
Functions
analog_joypad_readRead values from an analog joypad.
analog_convertConvert button to the standard joypad layout.

Variables

JOY_ANALOG_BYTTONS_0

Holds the state of A, B, SELECT, START and other unknown buttons...

JOY_ANALOG_BUTTONS_1

JOY_ANALOG_BUTTONS_1 = 4 ; [todo] unconfirmed

May hold the states for other unknown buttons.

JOY_ANALOG_X

JOY_ANALOG_X = 1

Value of the analog stick horizontal axis.

JOY_ANALOG_Y

JOY_ANALOG_Y = 2

Value of the analog stick vertical axis.

JOY_ANALOG_SLIDER

JOY_ANALOG_SLIDER = 3 ; [todo] unconfirmed

Value of the slider stick.

Functions

analog_joypad_read

Read values from an analog joypad.

Return

Carry flagset if an analog joypad was succesfully detected. joypad

analog_convert

Convert button to the standard joypad layout.

Return

joypadThe first 4 bits will contains the state of the A, B, SELECT and START buttons just like a standard joypad.
JOY_ANALOG_BUTTONS_1 = 4 ; [todo] unconfirmed
May hold the states for other unknown buttons.
JOY_ANALOG_X = 1
Value of the analog stick horizontal axis.
JOY_ANALOG_Y = 2
Value of the analog stick vertical axis.
JOY_ANALOG_SLIDER = 3 ; [todo] unconfirmed
Value of the slider stick.
Close