LCDproc development and user support list

Text archives Help


[Lcdproc] MtxOrb.c keypress issue


Chronological Thread 
  • From: tubaman AT fattuba.com (Ryan Nowakowski)
  • Subject: [Lcdproc] MtxOrb.c keypress issue
  • Date: Thu Jan 6 00:22:01 2005

I was using lcdproc to get keypresses from my matrix orbital mx212 lcd
and I noticed that they keys were mapped wrong. I don't know if they
were mapped that way to fix a problem or what. Anyway, here's a patch
to map keys correctly.

- Ryan
Index: MtxOrb.c
===================================================================
RCS file: /var/lib/cvs/se/lcdproc/server/drivers/MtxOrb.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 MtxOrb.c
*** MtxOrb.c 5 Jan 2005 23:50:50 -0000 1.1.1.1
--- MtxOrb.c 6 Jan 2005 00:03:54 -0000
***************
*** 1264,1272 ****

if (!p->keypad_test_mode) {
if (in==p->left_key) { return "Left";
! } else if (in==p->right_key) { return "Up";
! } else if (in==p->up_key) { return "Down";
! } else if (in==p->down_key) { return "Right";
} else if (in==p->enter_key) { return "Enter";
} else if (in==p->escape_key) { return "Escape";
} else {
--- 1264,1272 ----

if (!p->keypad_test_mode) {
if (in==p->left_key) { return "Left";
! } else if (in==p->right_key) { return "Right";
! } else if (in==p->up_key) { return "Up";
! } else if (in==p->down_key) { return "Down";
} else if (in==p->enter_key) { return "Enter";
} else if (in==p->escape_key) { return "Escape";
} else {



Archive powered by MHonArc 2.6.18.

Top of page