mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-12-18 02:06:51 +00:00
49 lines
793 B
C++
49 lines
793 B
C++
#include "PCInput.h"
|
|
|
|
static unsigned char gMouseStatus;
|
|
|
|
// @NotOk
|
|
// Globals
|
|
int PCINPUT_GetMouseStatus(void)
|
|
{
|
|
return gMouseStatus;
|
|
}
|
|
|
|
static int gMouseBoundOne;
|
|
static int gMouseBoundTwo;
|
|
static int gMouseBoundThree;
|
|
static int gMouseBoundFour;
|
|
|
|
|
|
// @NotOk
|
|
// Globals
|
|
void PCINPUT_SetMouseBound(int a1, int a2, int a3, int a4)
|
|
{
|
|
gMouseBoundOne = a1;
|
|
gMouseBoundTwo = a2;
|
|
gMouseBoundThree = a3;
|
|
gMouseBoundFour = a4;
|
|
}
|
|
|
|
static int gMouseX;
|
|
static int gMouseY;
|
|
|
|
// @NotOk
|
|
// Globals
|
|
void PCINPUT_GetMousePosition(int *x, int *y)
|
|
{
|
|
*x = gMouseX;
|
|
*y = gMouseY;
|
|
}
|
|
|
|
static unsigned char gControllerAxesRelatedOne;
|
|
static int gControllerAxesRelatedTwo = -1;
|
|
|
|
// @NotOk
|
|
// Globals
|
|
void PCINPUT_FreezeControllerAxes(void)
|
|
{
|
|
gControllerAxesRelatedOne = 1;
|
|
gControllerAxesRelatedTwo = -1;
|
|
}
|