You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
551 B
C++
24 lines
551 B
C++
#ifndef TOUCH_MOUSE_JOYSTICK_H
|
|
#define TOUCH_MOUSE_JOYSTICK_H
|
|
|
|
#include "touch_joystick.h"
|
|
|
|
class TouchMouseJoustick : public TouchJoystick
|
|
{
|
|
protected:
|
|
|
|
float sensitivity;
|
|
float trackball_friction;
|
|
|
|
public:
|
|
|
|
void init(int32_t pos_x, int32_t pos_y, int32_t pos_r, int16_t usb_x, int16_t usb_y, int16_t usb_r);
|
|
|
|
void setSensitivity(float sensitivity);
|
|
|
|
void setTrackballFriction(float trackball_friction);
|
|
|
|
int8_t touch(int8_t fid, int32_t tx, int32_t ty, int32_t tdx, int32_t tdy);
|
|
};
|
|
|
|
#endif |