#include "input.h"
#include "plat.h"
#include "input.h"
#include "plat.h"
#include "../linux/in_evdev.h"
#include "../gp2x/in_gp2x.h"
#include "../win32/in_vk.h"
#include "../linux/in_evdev.h"
#include "../gp2x/in_gp2x.h"
#include "../win32/in_vk.h"
for (i = 0; i < IN_MAX_DEVS; i++)
if (!in_devices[i].probed) break;
if (i >= IN_MAX_DEVS) {
for (i = 0; i < IN_MAX_DEVS; i++)
if (!in_devices[i].probed) break;
if (i >= IN_MAX_DEVS) {
- printf("input: too many devices, can't add %s\n", name);
+ lprintf("input: too many devices, can't add %s\n", name);
return;
}
in_free(&in_devices[i]);
return;
}
in_free(&in_devices[i]);
if (i + 1 > in_dev_count)
in_dev_count = i + 1;
if (i + 1 > in_dev_count)
in_dev_count = i + 1;
- printf("input: new device #%d \"%s\"\n", i, name);
+ lprintf("input: new device #%d \"%s\"\n", i, name);
update:
in_devices[i].probed = 1;
in_devices[i].does_combos = combos;
update:
in_devices[i].probed = 1;
in_devices[i].does_combos = combos;
}
if (in_have_async_devs)
}
if (in_have_async_devs)
- printf("input: async-only devices detected..\n");
+ lprintf("input: async-only devices detected..\n");
if (count == 0) {
/* don't deadlock, fail */
if (count == 0) {
/* don't deadlock, fail */
- printf("input: failed to find devices to read\n");
+ lprintf("input: failed to find devices to read\n");
- printf("input: missing driver for %s\n", name);
+ lprintf("input: missing driver for %s\n", name);
for (i = 0; i < IN_MAX_DEVS; i++)
if (in_devices[i].name == NULL) break;
if (i >= IN_MAX_DEVS) {
for (i = 0; i < IN_MAX_DEVS; i++)
if (in_devices[i].name == NULL) break;
if (i >= IN_MAX_DEVS) {
- printf("input: too many devices, can't add %s\n", name);
+ lprintf("input: too many devices, can't add %s\n", name);
}
if (kc < 0 || kc >= dev->key_count) {
}
if (kc < 0 || kc >= dev->key_count) {
- printf("input: bad key: %s\n", key);
+ lprintf("input: bad key: %s\n", key);
- printf("# drv probed binds name\n");
+ lprintf("# drv probed binds name\n");
for (i = 0; i < IN_MAX_DEVS; i++) {
in_dev_t *d = &in_devices[i];
if (!d->probed && d->name == NULL && d->binds == NULL)
continue;
for (i = 0; i < IN_MAX_DEVS; i++) {
in_dev_t *d = &in_devices[i];
if (!d->probed && d->name == NULL && d->binds == NULL)
continue;
- printf("%d %3d %6c %5c %s\n", i, d->drv_id, d->probed ? 'y' : 'n',
+ lprintf("%d %3d %6c %5c %s\n", i, d->drv_id, d->probed ? 'y' : 'n',
d->binds ? 'y' : 'n', d->name);
}
}
d->binds ? 'y' : 'n', d->name);
}
}
while (1) {
int dev = 0, down;
ret = in_update_keycode(&dev, &down);
while (1) {
int dev = 0, down;
ret = in_update_keycode(&dev, &down);
- printf("#%i: %i %i (%s)\n", dev, down, ret, in_get_key_name(dev, ret));
+ lprintf("#%i: %i %i (%s)\n", dev, down, ret, in_get_key_name(dev, ret));
}
#else
while (1) {
ret = in_menu_wait_any();
}
#else
while (1) {
ret = in_menu_wait_any();
+ lprintf("%08x\n", ret);
DEFINES = _UNZIP_SUPPORT IN_VK
CFLAGS += -O2 -Wall -falign-functions=2 -ffast-math
CFLAGS += -I../.. -I. -I../../zlib/ -Idirectx/include/
DEFINES = _UNZIP_SUPPORT IN_VK
CFLAGS += -O2 -Wall -falign-functions=2 -ffast-math
CFLAGS += -I../.. -I. -I../../zlib/ -Idirectx/include/
-LDFLAGS += -L. -Ldirectx/lib/ -lgdi32 -lcomdlg32 -lddraw -ldsound -ldxguid
+LDFLAGS += -mwindows -L. -Ldirectx/lib/ -lgdi32 -lcomdlg32 -lddraw -ldsound -ldxguid
# frontend
OBJS += main.o plat.o direct.o dsnd.o in_vk.o
# frontend
OBJS += main.o plat.o direct.o dsnd.o in_vk.o
{ 'D', IN_BINDTYPE_PLAYER12, 5 }, /* C */
{ 'A', IN_BINDTYPE_PLAYER12, 6 }, /* A */
{ VK_RETURN, IN_BINDTYPE_PLAYER12, 7 },
{ 'D', IN_BINDTYPE_PLAYER12, 5 }, /* C */
{ 'A', IN_BINDTYPE_PLAYER12, 6 }, /* A */
{ VK_RETURN, IN_BINDTYPE_PLAYER12, 7 },
+ { 'E', IN_BINDTYPE_PLAYER12, 8 }, /* Z */
+ { 'W', IN_BINDTYPE_PLAYER12, 9 }, /* Y */
+ { 'Q', IN_BINDTYPE_PLAYER12,10 }, /* X */
+ { 'R', IN_BINDTYPE_PLAYER12,11 }, /* M */
/*
{ BTN_SELECT, IN_BINDTYPE_EMU, PEVB_MENU },
// { BTN_Y, IN_BINDTYPE_EMU, PEVB_SWITCH_RND },
/*
{ BTN_SELECT, IN_BINDTYPE_EMU, PEVB_MENU },
// { BTN_Y, IN_BINDTYPE_EMU, PEVB_SWITCH_RND },
{
int msdiff = (int)(us - plat_get_ticks_us()) / 1000;
if (msdiff > 6)
{
int msdiff = (int)(us - plat_get_ticks_us()) / 1000;
if (msdiff > 6)
while (plat_get_ticks_us() < us)
;
}
while (plat_get_ticks_us() < us)
;
}
"Chui: Fame/C\n"
"NJ: CZ80\n"
"MAME devs: YM2612, SN76496 and SH2 cores\n"
"Chui: Fame/C\n"
"NJ: CZ80\n"
"MAME devs: YM2612, SN76496 and SH2 cores\n"
- "Stéphane Dallongeville: base of Fame/C (C68K), CZ80\n\n"
+ "Stéphane Dallongeville: base of Fame/C (C68K), CZ80\n\n"
"Special thanks (ideas, valuable information and stuff):\n"
"Charles MacDonald, Eke, Exophase, Haze, Lordus, Nemesis,\n"
"Pierpaolo Prazzoli, Rokas, Steve Snake, Tasco Deluxe.\n";
"Special thanks (ideas, valuable information and stuff):\n"
"Charles MacDonald, Eke, Exophase, Haze, Lordus, Nemesis,\n"
"Pierpaolo Prazzoli, Rokas, Steve Snake, Tasco Deluxe.\n";
A: A\r
S: B red button\r
D: C pen push\r
A: A\r
S: B red button\r
D: C pen push\r
TAB: (reset)\r
Esc: (load ROM)\r
Arrows: D-pad\r
TAB: (reset)\r
Esc: (load ROM)\r
Arrows: D-pad\r