shithub: cstory

ref: 2a70cbe89a3c2dea944d7d52edf48c62f79827d8
dir: /src/Input.h/

View raw version
#pragma once

#include "WindowsWrapper.h"

extern BOOL gbUseJoystick;
extern int gJoystickButtonTable[8];

struct JOYSTICK_STATUS
{
	BOOL bLeft;
	BOOL bRight;
	BOOL bUp;
	BOOL bDown;
	BOOL bButton[32];
};

void ReleaseDirectInput(void);
BOOL InitDirectInput(HINSTANCE hinst, HWND hWnd);
BOOL GetJoystickStatus(JOYSTICK_STATUS *status);
BOOL ResetJoystickStatus(void);