lilypad: remove debug printf

This commit is contained in:
Gregory Hainaut 2015-02-04 22:31:12 +01:00
parent 13bb1ae028
commit 8350dc2c68
2 changed files with 1 additions and 5 deletions

View File

@ -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;
} }

View File

@ -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