2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file joystick.h
|
|
|
|
*
|
|
|
|
* @date Jan 2, 2015
|
2017-01-03 03:05:22 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
#ifndef CONTROLLERS_JOYSTICK_H_
|
|
|
|
#define CONTROLLERS_JOYSTICK_H_
|
|
|
|
|
2018-09-16 19:26:57 -07:00
|
|
|
#include "global.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
JB_CENTER = 0,
|
|
|
|
JB_BUTTON_A = 1,
|
|
|
|
JB_BUTTON_B = 2,
|
|
|
|
JB_BUTTON_C = 3,
|
|
|
|
JB_BUTTON_D = 4,
|
|
|
|
} joystick_button_e;
|
|
|
|
|
|
|
|
void onJoystick(joystick_button_e button);
|
|
|
|
void initJoystick(Logging *shared);
|
|
|
|
|
|
|
|
#endif /* CONTROLLERS_JOYSTICK_H_ */
|