mirror of https://github.com/PCSX2/pcsx2.git
lilypad: remove debug printf
This commit is contained in:
parent
13bb1ae028
commit
8350dc2c68
|
@ -23,7 +23,6 @@
|
||||||
LinuxKeyboard::LinuxKeyboard() :
|
LinuxKeyboard::LinuxKeyboard() :
|
||||||
Device(LNX_KEYBOARD, KEYBOARD, L"displayName", L"instanceID", L"deviceID")
|
Device(LNX_KEYBOARD, KEYBOARD, L"displayName", L"instanceID", L"deviceID")
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Create a new device YES\n");
|
|
||||||
for (int i=0; i<MAX_KEYCODE; i++) {
|
for (int i=0; i<MAX_KEYCODE; i++) {
|
||||||
AddPhysicalControl(PSHBTN, i, i);
|
AddPhysicalControl(PSHBTN, i, i);
|
||||||
}
|
}
|
||||||
|
@ -57,17 +56,15 @@ int LinuxKeyboard::Update() {
|
||||||
while (R_GetQueuedKeyEvent(&event)) {
|
while (R_GetQueuedKeyEvent(&event)) {
|
||||||
switch (event.evt) {
|
switch (event.evt) {
|
||||||
case KeyPress:
|
case KeyPress:
|
||||||
fprintf(stderr, "key pressed %x\n", event.key);
|
|
||||||
physicalControlState[MAX_KEYCODE & event.key] = FULLY_DOWN;
|
physicalControlState[MAX_KEYCODE & event.key] = FULLY_DOWN;
|
||||||
status = 1;
|
status = 1;
|
||||||
break;
|
break;
|
||||||
case KeyRelease:
|
case KeyRelease:
|
||||||
fprintf(stderr, "key released %x\n", event.key);
|
|
||||||
physicalControlState[MAX_KEYCODE & event.key] = 0;
|
physicalControlState[MAX_KEYCODE & event.key] = 0;
|
||||||
status = 1;
|
status = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "Unsupported event %x\n", event.evt);
|
//fprintf(stderr, "Unsupported event %x\n", event.evt);
|
||||||
//assert(0);
|
//assert(0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,6 @@ void R_ClearKeyQueue() {
|
||||||
|
|
||||||
EXPORT_C_(void) PADWriteEvent(keyEvent &evt)
|
EXPORT_C_(void) PADWriteEvent(keyEvent &evt)
|
||||||
{
|
{
|
||||||
//fprintf(stderr, "Received evt:%x key:%x\n", evt.evt, evt.key);
|
|
||||||
R_QueueKeyEvent(evt);
|
R_QueueKeyEvent(evt);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue