MouseMove Events while holding a MouseButton
by Wolfgang Kurz · in Technical Issues · 11/07/2006 (1:29 pm) · 4 replies
Well i wrote my own litton mouse event thin and it really works out fine but for one thing
once i hold a mousebutton down no more mousemove events are being sent
my guess is that this is because the mouse gets locked once you press a button
and my question is if soemone can please show me how to receive mousemoveevents even though a button is pressed
once i hold a mousebutton down no more mousemove events are being sent
my guess is that this is because the mouse gets locked once you press a button
and my question is if soemone can please show me how to receive mousemoveevents even though a button is pressed
#2
all i can find is the renderfunction
but that doesnt have a mouseevent i could work with
the schedule is a good idea but for what i am doing i cant use that
i want to hold the right button down and move the camera with the mouse
so i need the mousemoveevent while the button is down
11/08/2006 (12:42 am)
Hmm i cant find a onupdatescene functionall i can find is the renderfunction
but that doesnt have a mouseevent i could work with
the schedule is a good idea but for what i am doing i cant use that
i want to hold the right button down and move the camera with the mouse
so i need the mousemoveevent while the button is down
#3
scenewindow2d::onupdatescene
try to look at in the TGB reference PDF
11/12/2006 (7:41 am)
It is on scenewindow2d functionscenewindow2d::onupdatescene
try to look at in the TGB reference PDF
#4
11/12/2006 (8:09 am)
Well i am in TGE there is no such Scenewindow2D
Torque Owner Michael S
or on your mousedownfunction
schedule
a function that has a same script like your mousemove function and do it recursively on slight delay
%this.schedule(10,"mousemovereplacementfunction");