fix previous patch
This commit is contained in:
@@ -1091,7 +1091,7 @@ pyramid_get_key (Driver *drvthis)
|
|||||||
if (strcmp(p->last_key_pressed, "K1000") == 0) /* last from left */
|
if (strcmp(p->last_key_pressed, "K1000") == 0) /* last from left */
|
||||||
return "Escape";
|
return "Escape";
|
||||||
|
|
||||||
#ifdef DEFAULT_NAMES_FOR_COMBINED_KEYPRESSES
|
#ifdef PYRAMID_DECODE_COMBINED_KEYPRESSES
|
||||||
/* Do we really want to type that much */
|
/* Do we really want to type that much */
|
||||||
if (strcmp(p->last_key_pressed, "K0012") == 0) /* A+B */
|
if (strcmp(p->last_key_pressed, "K0012") == 0) /* A+B */
|
||||||
return "Up+Down";
|
return "Up+Down";
|
||||||
@@ -1120,14 +1120,9 @@ pyramid_get_key (Driver *drvthis)
|
|||||||
return "Enter+Escape";
|
return "Enter+Escape";
|
||||||
if (strcmp(p->last_key_pressed, "K0021") == 0) /* D+C */
|
if (strcmp(p->last_key_pressed, "K0021") == 0) /* D+C */
|
||||||
return "Escape+Enter";
|
return "Escape+Enter";
|
||||||
#else
|
|
||||||
/* Why try to convert all key codes. We're
|
|
||||||
* getting pretty nice information already.
|
|
||||||
* The other drivers don't know about combined keys anyways.
|
|
||||||
*/
|
|
||||||
return p->last_key_pressed;
|
|
||||||
//return NULL; // Ignore combined key events
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return NULL; // Ignore combined key events
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user