/external/quake/quake/src/QW/client/ |
gl_vidlinux_x11.c | 309 XEvent x_event; local 311 if(!XCheckMaskEvent(dpy,KEY_MASK,&x_event)) 314 switch(x_event.type) { 316 keyq[keyq_head].key = XLateKey(&x_event.xkey); 321 keyq[keyq_head].key = XLateKey(&x_event.xkey); 332 XEvent x_event; local 335 if(!XCheckMaskEvent(dpy,MOUSE_MASK,&x_event)) 338 switch(x_event.type) { 341 mouse_x += x_event.xmotion.x_root; 342 mouse_y += x_event.xmotion.y_root [all...] |
vid_x.c | 788 XEvent x_event;
local 791 XNextEvent(x_disp, &x_event);
792 switch(x_event.type) {
794 keyq[keyq_head].key = XLateKey(&x_event.xkey);
799 keyq[keyq_head].key = XLateKey(&x_event.xkey);
806 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2));
807 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2));
809 // x_event.xmotion.x, x_event.xmotion.y, mouse_x, mouse_y);
823 mouse_x = (float) (x_event.xmotion.x-p_mouse_x); [all...] |
/external/quake/quake/src/WinQuake/ |
vid_sunxil.cpp | 829 XEvent x_event; local 832 XNextEvent(x_disp, &x_event); 833 switch(x_event.type) { 835 Key_Event(XLateKey(&x_event.xkey), true); 838 Key_Event(XLateKey(&x_event.xkey), false); 844 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2)); 845 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); 847 // x_event.xmotion.x, x_event.xmotion.y, mouse_x, mouse_y); 855 mouse_x = (float) (x_event.xmotion.x-p_mouse_x) [all...] |
vid_x.cpp | 863 XEvent x_event; local 866 XNextEvent(x_disp, &x_event); 867 switch(x_event.type) { 869 keyq[keyq_head].key = XLateKey(&x_event.xkey); 874 keyq[keyq_head].key = XLateKey(&x_event.xkey); 881 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2)); 882 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); 884 // x_event.xmotion.x, x_event.xmotion.y, mouse_x, mouse_y); 898 mouse_x = (float) (x_event.xmotion.x-p_mouse_x) [all...] |
vid_sunx.cpp | 930 XEvent x_event; local 932 XNextEvent(x_disp, &x_event); 933 switch(x_event.type) 936 Key_Event(XLateKey(&x_event.xkey), true); 939 Key_Event(XLateKey(&x_event.xkey), false); 942 //printf( "button %d down\n", x_event.xbutton.button ); 943 Key_Event( K_MOUSE1 + x_event.xbutton.button - 1, true ); 946 //printf( "button %d up\n", x_event.xbutton.button ); 947 Key_Event( K_MOUSE1 + x_event.xbutton.button - 1, false ); 951 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2)) [all...] |
/external/sepolicy/ |
access_vectors | 597 class x_event
|