1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 07:40:24 +00:00

Reintroduce _MOUSEMOVE (with great power comes great responsibility)

This commit is contained in:
Luke Ceddia 2016-08-23 21:52:57 +10:00
parent 17acd3ce0e
commit 01d207ec7f

View file

@ -19824,6 +19824,7 @@ void sub_mkdir(qbs *str){
}
void sub__mousemove(float x,float y){
#ifdef QB64_GLUT
int32 x2,y2,sx,sy;
if (display_page->text){
sx=fontwidth[display_page->font]*display_page->width; sy=fontheight[display_page->font]*display_page->height;
@ -19850,10 +19851,12 @@ void sub_mkdir(qbs *str){
//adjust for fullscreen position as necessary:
x2*=x_scale; y2*=y_scale;
x2+=x_offset; y2+=y_offset;
//NO_S_D_L//SDL_WarpMouse(x2,y2);
while (!window_exists){Sleep(100);}
glutWarpPointer(x2, y2);
return;
error:
error(5);
#endif
}
float func__mousex(int32 context, int32 passed){