NSRT Header support part 3.

This commit is contained in:
n-a-c-h
2004-05-03 10:26:43 +00:00
parent 17d3b7a155
commit 53be4994a6
3 changed files with 137 additions and 18 deletions

View File

@@ -52,3 +52,46 @@ void allocspc7110()
{
spc7110romptr = (unsigned char *)doMemAlloc(8192*1024+4096);
}
extern bool input1gp;
extern bool input1mouse;
extern bool input2gp;
extern bool input2mouse;
extern bool input2scope;
extern bool input2just;
extern unsigned char snesmouse;
void cycleinputdevice()
{
for (;;)
{
snesmouse++;
if (snesmouse >= 5)
{
snesmouse = 0;
}
if (snesmouse == 0)
{
if (input1gp && input2gp) { return; }
snesmouse++;
}
if (snesmouse == 1)
{
if (input1mouse) { return; }
snesmouse++;
}
if (snesmouse == 2)
{
if (input2mouse) { return; }
snesmouse++;
}
if (snesmouse == 3)
{
if (input2scope) { return; }
snesmouse++;
}
if (snesmouse == 4)
{
if (input2just) { return; }
}
}
}