Definition in file qt1081_controller.c.
#include "board.h"
#include "qt1081.h"
#include "controller.h"
Go to the source code of this file.
Functions | |
void | controller_init (U32 fcpu_hz, U32 fhsb_hz, U32 fpbb_hz, U32 fpba_hz) |
Initialization function of the controller interface. | |
Bool | is_joystick_down (void) |
check if down is pressed. | |
Bool | is_joystick_left (void) |
check if left is pressed. | |
Bool | is_joystick_pressed (void) |
check if pressed is pressed. | |
Bool | is_joystick_right (void) |
check if right is pressed. | |
Bool | is_joystick_up (void) |
check if up is pressed. |
void controller_init | ( | U32 | fcpu_hz, | |
U32 | fhsb_hz, | |||
U32 | fpbb_hz, | |||
U32 | fpba_hz | |||
) |
Initialization function of the controller interface.
fcpu_hz | CPU frequency. | |
fhsb_hz | HSB frequency. | |
fpbb_hz | PBB frequency. | |
fpba_hz | PBA frequency. |
Definition at line 69 of file qt1081_controller.c.
Bool is_joystick_down | ( | void | ) |
Bool is_joystick_left | ( | void | ) |
Bool is_joystick_pressed | ( | void | ) |
Bool is_joystick_right | ( | void | ) |
Bool is_joystick_up | ( | void | ) |