diff options
author | notaz | 2010-12-10 13:54:59 +0200 |
---|---|---|
committer | notaz | 2010-12-14 15:25:05 +0200 |
commit | ccf51908872ddeb811b1245e6751600b860d90b5 (patch) | |
tree | 75a1c81c1ff1878ad12bcbf4a54eba3de3ab57ea /frontend | |
parent | 4b421010647aba998fe2ebfc7d6f226623d47954 (diff) | |
download | pcsx_rearmed-ccf51908872ddeb811b1245e6751600b860d90b5.tar.gz pcsx_rearmed-ccf51908872ddeb811b1245e6751600b860d90b5.tar.bz2 pcsx_rearmed-ccf51908872ddeb811b1245e6751600b860d90b5.zip |
fix x86 build, minor refactoring
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/plat_dummy.c | 36 | ||||
-rw-r--r-- | frontend/plat_omap.c (renamed from frontend/omap.c) | 0 | ||||
-rw-r--r-- | frontend/plugin.c | 4 | ||||
-rw-r--r-- | frontend/plugin_lib.c | 2 |
4 files changed, 39 insertions, 3 deletions
diff --git a/frontend/plat_dummy.c b/frontend/plat_dummy.c new file mode 100644 index 0000000..b209f4f --- /dev/null +++ b/frontend/plat_dummy.c @@ -0,0 +1,36 @@ +/* + * (C) notaz, 2010 + * + * This work is licensed under the terms of the GNU GPLv2 or later. + * See the COPYING file in the top-level directory. + */ + +#include "common/input.h" +#include "linux/fbdev.h" + +struct vout_fbdev *layer_fb; +struct in_default_bind in_evdev_defbinds[] = { + { 0, 0, 0 }, +}; + +int omap_enable_layer(int enabled) +{ + return 0; +} + +void plat_video_menu_enter(int is_rom_loaded) +{ +} + +void plat_video_menu_begin(void) +{ +} + +void plat_video_menu_end(void) +{ +} + +void plat_init(void) +{ +} + diff --git a/frontend/omap.c b/frontend/plat_omap.c index e5f9ebd..e5f9ebd 100644 --- a/frontend/omap.c +++ b/frontend/plat_omap.c diff --git a/frontend/plugin.c b/frontend/plugin.c index c83da72..ca359d7 100644 --- a/frontend/plugin.c +++ b/frontend/plugin.c @@ -48,8 +48,8 @@ static uint8_t pad_byte; static unsigned char PADstartPoll(int pad) { pad_byte = 0; - pad_buf[2] = keystate; - pad_buf[3] = keystate >> 8; + pad_buf[2] = ~keystate; + pad_buf[3] = ~keystate >> 8; return 0xFF; } diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 7d5e15f..e2a0d58 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -47,7 +47,7 @@ void *pl_fbdev_flip(void) in_update(actions); if (actions[IN_BINDTYPE_EMU] & PEV_MENU) stop = 1; - keystate = ~actions[IN_BINDTYPE_PLAYER12]; + keystate = actions[IN_BINDTYPE_PLAYER12]; // let's flip now pl_fbdev_buf = vout_fbdev_flip(layer_fb); |