2006-02-25 20:50:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
enum JOYNUM {JN_JOYSTICK0=0, JN_JOYSTICK1};
|
|
|
|
|
2013-12-31 22:40:10 +00:00
|
|
|
enum JOY0CHOICE {J0C_DISABLED=0, J0C_JOYSTICK1, J0C_KEYBD_CURSORS, J0C_KEYBD_NUMPAD, J0C_MOUSE, J0C_MAX};
|
2017-07-03 20:48:21 +00:00
|
|
|
enum JOY1CHOICE {J1C_DISABLED=0, J1C_JOYSTICK2, J1C_KEYBD_CURSORS, J1C_KEYBD_NUMPAD, J1C_MOUSE, J1C_JOYSTICK1_THUMBSTICK2, J1C_MAX};
|
2013-12-31 22:40:10 +00:00
|
|
|
|
|
|
|
enum {JOYSTICK_MODE_FLOATING=0, JOYSTICK_MODE_CENTERING}; // Joystick centering control
|
|
|
|
|
2008-05-17 23:20:33 +00:00
|
|
|
void JoyInitialize();
|
2018-11-10 15:55:20 +00:00
|
|
|
BOOL JoyProcessKey(int,bool,bool,bool);
|
2008-05-17 23:20:33 +00:00
|
|
|
void JoyReset();
|
|
|
|
void JoySetButton(eBUTTON,eBUTTONSTATE);
|
2012-08-12 19:10:47 +00:00
|
|
|
BOOL JoySetEmulationType(HWND,DWORD,int, const bool bMousecardActive);
|
2008-05-17 23:20:33 +00:00
|
|
|
void JoySetPosition(int,int,int,int);
|
2014-09-14 20:23:54 +00:00
|
|
|
void JoyUpdateButtonLatch(const UINT nExecutionPeriodUsec);
|
2008-05-17 23:20:33 +00:00
|
|
|
BOOL JoyUsingMouse();
|
2013-12-06 21:10:41 +00:00
|
|
|
BOOL JoyUsingKeyboard();
|
2013-12-31 22:40:10 +00:00
|
|
|
BOOL JoyUsingKeyboardCursors();
|
|
|
|
BOOL JoyUsingKeyboardNumpad();
|
2008-05-17 23:20:33 +00:00
|
|
|
void JoyDisableUsingMouse();
|
2015-08-21 20:45:21 +00:00
|
|
|
void JoySetJoyType(UINT num, DWORD type);
|
|
|
|
DWORD JoyGetJoyType(UINT num);
|
2006-02-25 20:50:29 +00:00
|
|
|
void JoySetTrim(short nValue, bool bAxisX);
|
|
|
|
short JoyGetTrim(bool bAxisX);
|
2014-02-16 14:39:26 +00:00
|
|
|
void JoyportControl(const UINT uControl);
|
2018-11-10 15:55:20 +00:00
|
|
|
void JoySetHookAltKeys(bool hook);
|
2015-12-05 16:50:27 +00:00
|
|
|
void JoySaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
|
|
|
void JoyLoadSnapshot(class YamlLoadHelper& yamlLoadHelper);
|
2006-02-25 20:50:29 +00:00
|
|
|
|
2018-03-03 21:27:50 +00:00
|
|
|
BYTE __stdcall JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles);
|
|
|
|
BYTE __stdcall JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles);
|
2019-04-06 17:23:42 +00:00
|
|
|
void JoyResetPosition(ULONG nExecutedCycles);
|