mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
starting input layer integration work
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@628 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
906bdc9fb5
commit
bc0420cd98
6 changed files with 256 additions and 183 deletions
10
gp2x/emu.c
10
gp2x/emu.c
|
@ -22,6 +22,7 @@
|
|||
#include "../common/fonts.h"
|
||||
#include "../common/emu.h"
|
||||
#include "../common/config.h"
|
||||
#include "../common/input.h"
|
||||
#include "../linux/sndout_oss.h"
|
||||
#include "cpuctrl.h"
|
||||
|
||||
|
@ -580,6 +581,14 @@ static void updateKeys(void)
|
|||
keys &= CONFIGURABLE_KEYS;
|
||||
keys2 = keys;
|
||||
|
||||
#if 1
|
||||
{
|
||||
/* FIXME: combos */
|
||||
int acts = in_update();
|
||||
int pl = (acts >> 16) & 1;
|
||||
allActions[pl] |= acts;
|
||||
}
|
||||
#else
|
||||
for (i = 0; i < 32; i++)
|
||||
{
|
||||
if (keys2 & (1 << i))
|
||||
|
@ -607,6 +616,7 @@ static void updateKeys(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// add joy inputs
|
||||
if (num_of_joys > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue