dirkdeftly
3rd December 2003, 04:10
I wish upon a star that we had a new getkbmouse(,,) function:
getkbmouse(input,press (move up/left)/release (move down/right)/hold (still))
so we could compress code structures like:
plmbs=clmbs;clmbs=getkbmouse(3);
click=1-equal(plmbs,clmbs)*clmbs;
to:
click=getkbmouse(3,1)
...For those of you who don't understand my blathering, I want to add a change in position identifier to the getkbmouse() function, so we can track actual presses and releases instead of just down/up. And come to think of it, it'd probably just be easier to define it as the change in state since the last frame. So getkbmouse(3,1) would be the change in left mouse button state, and getkbmouse(3,0) would be it's current state.
OR we could have a seperate function altogether: changekbmouse(blah).
By now I've lost my train of thought, but I'll post it anyway if anyone else thinks it's worthy of attention....
getkbmouse(input,press (move up/left)/release (move down/right)/hold (still))
so we could compress code structures like:
plmbs=clmbs;clmbs=getkbmouse(3);
click=1-equal(plmbs,clmbs)*clmbs;
to:
click=getkbmouse(3,1)
...For those of you who don't understand my blathering, I want to add a change in position identifier to the getkbmouse() function, so we can track actual presses and releases instead of just down/up. And come to think of it, it'd probably just be easier to define it as the change in state since the last frame. So getkbmouse(3,1) would be the change in left mouse button state, and getkbmouse(3,0) would be it's current state.
OR we could have a seperate function altogether: changekbmouse(blah).
By now I've lost my train of thought, but I'll post it anyway if anyone else thinks it's worthy of attention....