[gpm] Event interfacing between Input Subsystem and Gpm

Ringo Pebam ringo.p@gmail.com
Wed Aug 24 10:25:15 CEST 2005


hi,

i have some questions, can anybody answer me if you have time??

1. how does gpm gets the event from the kernel. is it through 
   "evdev" or "mousedev" or something else ( mine is a USB mouse).

2. if it is evdev, how is the translation of x and y done in 
   gpm, from input_event to Gpm_Event. 

   input.h
   .......
   struct input_event {
        struct timeval time;
        __u16 type;
        __u16 code;
        __s32 value;
   };


   gpm.h:
   ......
   typedef struct Gpm_Event {
	unsigned char buttons, modifiers;  
	unsigned short vc;
  	short dx, dy, x, y;
  	enum Gpm_Etype type;
  	int clicks;
  	enum Gpm_Margin margin;
  	short wdx, wdy;
   }Gpm_Event;

regards,
ringo


More information about the gpm mailing list