Disable joystick

This commit is contained in:
kichikuou
2016-04-02 19:55:42 +09:00
parent fff314587b
commit 957e2b96e7
3 changed files with 6 additions and 4 deletions
+2
View File
@@ -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
View File
@@ -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();
+2
View File
@@ -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;
}