2 Skelton for retropc emulator
3 Author : Takeda.Toshiya
4 Port to Qt : K.Ohta <whatisthis.sowhat _at_ gmail.com>
7 History : 2015.11.10 Split from qt_main.h
8 [ win32 main ] -> [ Qt main ] -> [Joy Stick]
10 #ifndef _CSP_QT_JOY_THREAD_H
11 #define _CSP_QT_JOY_THREAD_H
24 class DLL_PREFIX JoyThreadClass : public QThread {
30 SDL_GameController *controller_table[16];
32 SDL_Joystick *joyhandle[16];
36 USING_FLAGS *using_flags;
39 void joystick_plugged(int num);
40 void joystick_unplugged(int num);
41 bool EventSDL(SDL_Event *);
42 void x_axis_changed(int, int);
43 void y_axis_changed(int, int);
44 void button_down(int, unsigned int);
45 void button_up(int, unsigned int);
46 int get_joy_num(int id);
47 # if defined(USE_SDL2)
48 int get_joyid_from_instanceID(SDL_JoystickID id);
51 JoyThreadClass(EMU *p, OSD *o, USING_FLAGS *pflags, QObject *parent = 0);
53 void run() { doWork("");}
58 void doWork(const QString &);
61 int sig_finished(void);
62 int call_joy_thread(EMU *);