From: Atani <at...@at...> - 2005-11-19 23:25:17
|
On 11/19/2005, "Sam Steele" <sam...@gm...> wrote: >On Nov 19, 2005, at 4:48 PM, Atani wrote: >> Ok, I will look into it while fixing the Y invert. >> > >I think maybe we're looping through the events too quickly. If I add >a NSLog that outputs point.x and point.y, then the data comes through >fine, but if I remove the NSLog message then I just get garbage. Interesting... I have not had a chance to dig into it yet, I dont know when I will get to yet.. My son doesnt want to take a nap yet! If I can get him down I will try to get working on this.. >Done. I'll commit this in a few minutes for OSX. I wanted to re- >show the cursor when it leaves the window, but Tiki isn't receiving >mouseEntered / mouseExited. I added some code to mouseMoved to show/ >hide based on whether it's inside the window bounds, but it's kind of >quirky since the coordinates aren't working. There is an Event which we can receive for "enter" and "exit" I believe. I will check this out and see if I can get it working. As for showing/hiding in the move event, we should likely not do it there in favor of the enter/exit event. >I'll leave this part commented out, and just use the instant show/hide that = happens during >showCursor(bool) for now. > Fine by me :) I will work on fixing it up properly. >I'll play around with this. I initially thought to use an Anim so >that anything could be a pointer, but I suppose I could also have the >Cursor drawable see if it has any subdrawables attached, and only >draw a triangle if there's nothing else to draw. I would stick with a Drawable since it can contain multiple Drawable's each with their own positions which can be cool for "mouse trails" style effects (this can also be done with animations and chainanims). Mike |