Microchip® Advanced Software Framework

s_joystick.h File Reference
#include "compiler.h"

Functions

bool b_joystick_get_value (char *buf)
 Get the current joystick state. More...
 

bool b_joystick_get_value ( char *  buf)

Get the current joystick state.

Parameters
bufchar buffer in which the joystick state is stored.
Returns
true upon success, false if error.

References acpc_js_events, Clr_bits, is_joystick_down(), is_joystick_left(), is_joystick_pressed(), is_joystick_right(), is_joystick_up(), JS_EVENT_DOWN, JS_EVENT_LEFT, JS_EVENT_PUSH, JS_EVENT_RIGHT, JS_EVENT_UP, Set_bits, sprintf(), and x_joystick.

Referenced by device_full_custom_task().