[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 01274] keypad slide switching



Hello folks.

I've been trying to write a patch that causes mgp to listen to the
numeric keypad, in addition to the numbers at the top of the keyboard,
and the keypad enter in addition to letter g, when going to a specific
slide number.

It isn't working though; I added clauses to the KeyPressed switch in
mgp.c, but that code there doesn't seem to get executed. What seems to
be going wrong here:

			case XK_KP_0:
			case XK_KP_1:
			case XK_KP_2:
			case XK_KP_3:
			case XK_KP_4:
			case XK_KP_5:
			case XK_KP_6:
			case XK_KP_7:
			case XK_KP_8:
			case XK_KP_9:
				number = number * 10 + key - XK_KP_0;
				printf("nmuber: %d",number);
				break;


Any ideas? Thanks folks. 

-- 
David McCabe
PGP Key ID: 0xBD6B3B4E
41E5DD0466B3C3EFFAC6977DD5B80608BD6B3B4E

Attachment: signature.asc
Description: Digital signature