mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-03 04:18:04 +03:00
Disable joystick
This commit is contained in:
@@ -120,11 +120,13 @@ NACT::NACT()
|
||||
ags = new AGS(this);
|
||||
mako = new MAKO(this);
|
||||
|
||||
#ifdef USE_JOY
|
||||
// 入力初期化
|
||||
joy_num = joyGetNumDevs();
|
||||
if(joy_num) {
|
||||
joyGetDevCaps(JOYSTICKID1, &joycaps, sizeof(JOYCAPS));
|
||||
}
|
||||
#endif
|
||||
|
||||
terminate = false;
|
||||
}
|
||||
|
||||
+2
-4
@@ -8,10 +8,6 @@
|
||||
#define _NACT_H_
|
||||
|
||||
#include <windows.h>
|
||||
#if defined(_DEBUG_CONSOLE)
|
||||
#include <wincon.h>
|
||||
#endif
|
||||
#include <mmsystem.h>
|
||||
#include <stdio.h>
|
||||
#include "../common.h"
|
||||
|
||||
@@ -213,8 +209,10 @@ private:
|
||||
void get_cursor(int* x, int* y);
|
||||
void set_cursor(int x, int y);
|
||||
|
||||
#ifdef USE_JOY
|
||||
int joy_num;
|
||||
JOYCAPS joycaps;
|
||||
#endif
|
||||
int mouse_x, mouse_y;
|
||||
|
||||
uint32 calc_crc32();
|
||||
|
||||
@@ -38,6 +38,7 @@ uint8 NACT::get_key()
|
||||
|
||||
// マウス移動で方向入力はサポートしない
|
||||
|
||||
#ifdef USE_JOY
|
||||
// ジョイスティック
|
||||
if(joy_num > 0) {
|
||||
JOYINFO joyinfo;
|
||||
@@ -52,6 +53,7 @@ uint8 NACT::get_key()
|
||||
if(joyinfo.wButtons & JOY_BUTTON4) val |= 0x80;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user