Home
last modified time | relevance | path

Searched refs:mouse_y (Results 1 – 19 of 19) sorted by relevance

/external/qemu/distrib/sdl-1.2.12/src/video/aalib/
DSDL_aaevents.c45 int mouse_button, mouse_x, mouse_y; in AA_PumpEvents() local
60 aa_getmouse (AA_context, &mouse_x, &mouse_y, &mouse_button); in AA_PumpEvents()
63 mouse_y = mouse_y * this->screen->h / aa_scrheight (AA_context); in AA_PumpEvents()
95 if ( prev_x != mouse_x || prev_y != mouse_y ) { in AA_PumpEvents()
96 posted += SDL_PrivateMouseMotion(0, 0, mouse_x, mouse_y); in AA_PumpEvents()
100 prev_x = mouse_x; prev_y = mouse_y; in AA_PumpEvents()
/external/quake/quake/src/QW/client/
Dgl_vidlinux_x11.c67 static float mouse_x, mouse_y; variable
342 mouse_y += x_event.xmotion.y_root; in Mouse_Update()
345 mouse_y += (float) ((int)x_event.xmotion.y - (int)(scr_height/2)); in Mouse_Update()
353 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in Mouse_Update()
836 mouse_y = (mouse_y + old_mouse_y) * 0.5; in IN_Move()
840 old_mouse_y = mouse_y; in IN_Move()
843 mouse_y *= sensitivity.value; in IN_Move()
853 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_Move()
860 cmd->upmove -= m_forward.value * mouse_y; in IN_Move()
862 cmd->forwardmove -= m_forward.value * mouse_y; in IN_Move()
[all …]
Dgl_vidlinuxglx.c62 static float mouse_x, mouse_y; variable
292 mouse_y = event.xmotion.y_root; in GetEvent()
298 mouse_y = (float) ((int)event.xmotion.y - (int)(vid.height/2)); in GetEvent()
746 mouse_y = (mouse_y + old_mouse_y) * 0.5; in IN_MouseMove()
749 old_mouse_y = mouse_y; in IN_MouseMove()
752 mouse_y *= sensitivity.value; in IN_MouseMove()
765 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
774 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
776 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
778 mouse_x = mouse_y = 0.0; in IN_MouseMove()
Dvid_x.c58 float mouse_x, mouse_y; variable
807 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
824 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in GetEvent()
1046 mouse_x = mouse_y = 0.0; in IN_Init()
1078 mouse_y = (mouse_y + old_mouse_y) * 0.5; in IN_Move()
1082 old_mouse_y = mouse_y; in IN_Move()
1085 mouse_y *= sensitivity.value; in IN_Move()
1095 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_Move()
1102 cmd->upmove -= m_forward.value * mouse_y; in IN_Move()
1104 cmd->forwardmove -= m_forward.value * mouse_y; in IN_Move()
[all …]
Dgl_vidlinux.c93 float mouse_x, mouse_y; variable
769 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
774 mouse_y = my; in IN_MouseMove()
781 mouse_y *= sensitivity.value; in IN_MouseMove()
794 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
803 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
805 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Dgl_vidlinux_svga.c91 float mouse_x, mouse_y; variable
807 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
812 mouse_y = my; in IN_MouseMove()
819 mouse_y *= sensitivity.value; in IN_MouseMove()
832 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
841 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
843 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Din_win.c40 int mouse_x, mouse_y, old_mouse_x, old_mouse_y, mx_accum, my_accum; variable
682 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
687 mouse_y = my; in IN_MouseMove()
694 mouse_y *= sensitivity.value; in IN_MouseMove()
707 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
716 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
718 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Dvid_svgalib.c93 float mouse_x, mouse_y; variable
949 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
954 mouse_y = my; in IN_MouseMove()
961 mouse_y *= sensitivity.value; in IN_MouseMove()
974 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
983 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
985 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Dr_misc.c161 extern float mouse_x, mouse_y;
/external/quake/quake/src/WinQuake/
Din_dos.cpp84 float mouse_x, mouse_y; variable
291 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
296 mouse_y = my; in IN_MouseMove()
302 mouse_y *= sensitivity.value; in IN_MouseMove()
315 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
324 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
326 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Dgl_vidandroid.cpp27 float mouse_x, mouse_y; variable
747 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
753 mouse_y = my; in IN_MouseMove()
760 mouse_y *= 5.0f * sensitivity.value; in IN_MouseMove()
773 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
782 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
784 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Dvid_x.cpp52 float mouse_x, mouse_y; variable
882 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
899 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in GetEvent()
1138 mouse_x = mouse_y = 0.0; in IN_Init()
1170 mouse_y = (mouse_y + old_mouse_y) * 0.5; in IN_Move()
1174 old_mouse_y = mouse_y; in IN_Move()
1177 mouse_y *= sensitivity.value; in IN_Move()
1187 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_Move()
1194 cmd->upmove -= m_forward.value * mouse_y; in IN_Move()
1196 cmd->forwardmove -= m_forward.value * mouse_y; in IN_Move()
[all …]
Dvid_sunxil.cpp92 float mouse_x, mouse_y; variable
845 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
856 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in GetEvent()
1223 mouse_x = mouse_y = 0.0; in IN_Init()
1255 mouse_y = (mouse_y + old_mouse_y) * 0.5; in IN_Move()
1259 old_mouse_y = mouse_y; in IN_Move()
1262 mouse_y *= sensitivity.value; in IN_Move()
1272 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_Move()
1279 cmd->upmove -= m_forward.value * mouse_y; in IN_Move()
1281 cmd->forwardmove -= m_forward.value * mouse_y; in IN_Move()
[all …]
Dvid_sunx.cpp48 float mouse_x, mouse_y; variable
952 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2)); in GetEvent()
962 mouse_y = (float) (x_event.xmotion.y-p_mouse_y); in GetEvent()
1196 mouse_x = mouse_y = 0.0; in IN_Init()
1228 mouse_y = (mouse_y + old_mouse_y) * 0.5; in IN_Move()
1232 old_mouse_y = mouse_y; in IN_Move()
1235 mouse_y *= sensitivity.value; in IN_Move()
1245 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_Move()
1252 cmd->upmove -= m_forward.value * mouse_y; in IN_Move()
1254 cmd->forwardmove -= m_forward.value * mouse_y; in IN_Move()
[all …]
Dgl_vidlinux.cpp92 float mouse_x, mouse_y; variable
821 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
826 mouse_y = my; in IN_MouseMove()
833 mouse_y *= sensitivity.value; in IN_MouseMove()
846 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
855 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
857 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Din_win.cpp40 int mouse_x, mouse_y, old_mouse_x, old_mouse_y, mx_accum, my_accum; variable
686 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
691 mouse_y = my; in IN_MouseMove()
698 mouse_y *= sensitivity.value; in IN_MouseMove()
711 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
720 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
722 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Dvid_svgalib.cpp93 float mouse_x, mouse_y; variable
936 mouse_y = (my + old_mouse_y) * 0.5; in IN_MouseMove()
941 mouse_y = my; in IN_MouseMove()
948 mouse_y *= sensitivity.value; in IN_MouseMove()
961 cl.viewangles[PITCH] += m_pitch.value * mouse_y; in IN_MouseMove()
970 cmd->upmove -= m_forward.value * mouse_y; in IN_MouseMove()
972 cmd->forwardmove -= m_forward.value * mouse_y; in IN_MouseMove()
Dr_misc.cpp149 extern float mouse_x, mouse_y;
/external/qemu/distrib/sdl-1.2.12/src/video/ggi/
DSDL_ggievents.c63 static int mouse_x = 0, mouse_y = 0, mouse_z = 0; in GGI_PumpEvents() local
86 if (mouse_x != ev.pmove.x || mouse_y != ev.pmove.y || mouse_z != ev.pmove.wheel) in GGI_PumpEvents()
89 y = ev.pmove.y - mouse_y; in GGI_PumpEvents()
92 mouse_y = ev.pmove.y; in GGI_PumpEvents()