#include <string.h>
#include <stdio.h>
#include "compiler.h"
#include "s_joystick.h"
#include "joystick.h"
#include "FreeRTOS.h"
Macros | |
#define | JS_EVENT_DOWN 0x10 |
#define | JS_EVENT_LEFT 0x02 |
#define | JS_EVENT_PUSH 0x01 |
#define | JS_EVENT_RIGHT 0x04 |
#define | JS_EVENT_UP 0x08 |
#define | JS_NB_EVENT 32 |
Functions | |
bool | b_joystick_get_value (char *buf) |
Get the current joystick state. More... | |
Variables | |
const signed portCHAR * | acpc_js_events [JS_NB_EVENT] |
static unsigned short | x_joystick = 0 |
#define JS_EVENT_DOWN 0x10 |
Referenced by b_joystick_get_value().
#define JS_EVENT_LEFT 0x02 |
Referenced by b_joystick_get_value().
#define JS_EVENT_PUSH 0x01 |
Mask for events on joystick.
Referenced by b_joystick_get_value().
#define JS_EVENT_RIGHT 0x04 |
Referenced by b_joystick_get_value().
#define JS_EVENT_UP 0x08 |
Referenced by b_joystick_get_value().
#define JS_NB_EVENT 32 |
Max number of events on joystick.
bool b_joystick_get_value | ( | char * | buf | ) |
Get the current joystick state.
buf | char buffer in which the joystick state is stored. |
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, and x_joystick.
Referenced by device_full_custom_task().
const signed portCHAR* acpc_js_events[JS_NB_EVENT] |
Joystick events string, regarding bit field value.
Referenced by b_joystick_get_value().
|
static |
Joystick events.
Referenced by b_joystick_get_value().