Home
last modified time | relevance | path

Searched refs:x_event (Results 1 – 7 of 7) sorted by relevance

/external/quake/quake/src/QW/client/
Dgl_vidlinux_x11.c309 XEvent x_event; in Keyboard_Update() local
311 if(!XCheckMaskEvent(dpy,KEY_MASK,&x_event)) in Keyboard_Update()
314 switch(x_event.type) { in Keyboard_Update()
316 keyq[keyq_head].key = XLateKey(&x_event.xkey); in Keyboard_Update()
321 keyq[keyq_head].key = XLateKey(&x_event.xkey); in Keyboard_Update()
332 XEvent x_event; in Mouse_Update() local
335 if(!XCheckMaskEvent(dpy,MOUSE_MASK,&x_event)) in Mouse_Update()
338 switch(x_event.type) { in Mouse_Update()
341 mouse_x += x_event.xmotion.x_root; in Mouse_Update()
342 mouse_y += x_event.xmotion.y_root; in Mouse_Update()
[all …]
Dvid_x.c788 XEvent x_event; in GetEvent() local
791 XNextEvent(x_disp, &x_event); in GetEvent()
792 switch(x_event.type) { in GetEvent()
794 keyq[keyq_head].key = XLateKey(&x_event.xkey); in GetEvent()
799 keyq[keyq_head].key = XLateKey(&x_event.xkey); in GetEvent()
806 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2)); in GetEvent()
807 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
823 mouse_x = (float) (x_event.xmotion.x-p_mouse_x); in GetEvent()
824 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in GetEvent()
825 p_mouse_x=x_event.xmotion.x; in GetEvent()
[all …]
/external/quake/quake/src/WinQuake/
Dvid_x.cpp863 XEvent x_event; in GetEvent() local
866 XNextEvent(x_disp, &x_event); in GetEvent()
867 switch(x_event.type) { in GetEvent()
869 keyq[keyq_head].key = XLateKey(&x_event.xkey); in GetEvent()
874 keyq[keyq_head].key = XLateKey(&x_event.xkey); in GetEvent()
881 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2)); in GetEvent()
882 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
898 mouse_x = (float) (x_event.xmotion.x-p_mouse_x); in GetEvent()
899 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in GetEvent()
900 p_mouse_x=x_event.xmotion.x; in GetEvent()
[all …]
Dvid_sunxil.cpp829 XEvent x_event; in GetEvent() local
832 XNextEvent(x_disp, &x_event); in GetEvent()
833 switch(x_event.type) { in GetEvent()
835 Key_Event(XLateKey(&x_event.xkey), true); in GetEvent()
838 Key_Event(XLateKey(&x_event.xkey), false); in GetEvent()
844 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2)); in GetEvent()
845 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
855 mouse_x = (float) (x_event.xmotion.x-p_mouse_x); in GetEvent()
856 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in GetEvent()
857 p_mouse_x=x_event.xmotion.x; in GetEvent()
[all …]
Dvid_sunx.cpp930 XEvent x_event; in GetEvent() local
932 XNextEvent(x_disp, &x_event); in GetEvent()
933 switch(x_event.type) in GetEvent()
936 Key_Event(XLateKey(&x_event.xkey), true); in GetEvent()
939 Key_Event(XLateKey(&x_event.xkey), false); in GetEvent()
943 Key_Event( K_MOUSE1 + x_event.xbutton.button - 1, true ); in GetEvent()
947 Key_Event( K_MOUSE1 + x_event.xbutton.button - 1, false ); in GetEvent()
951 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2)); in GetEvent()
952 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
961 mouse_x = (float) (x_event.xmotion.x-p_mouse_x); in GetEvent()
[all …]
/external/sepolicy/
Dsecurity_classes115 class x_event # userspace
Daccess_vectors597 class x_event