From: Atani <at...@at...> - 2005-11-19 21:20:14
|
On 11/19/2005, "Sam Steele" <sam...@gm...> wrote: > >It should probably get flipped in plathid.mm, since SDL, Windows, and >the Dreamcast use 0,0 as the top left, not the bottom left. I did not know that about OSX. Instead of flipping on Y it should probably just subtract the window size from Y (640). That also brings up another point, what about fullscreen modes for OSX? > Also, as an example of the garbage values I'm getting, I uncommented the N= SLog >line inside plathid.mm: > >2005-11-19 15:51:56.572 TikiTest[21215] maple: mouse move: >(-2147483648,551) This looks like the NSLog line is incorrect, I thought I had fixed this already. Change the %d to %f and it should give you decent values. The values in NSPoint are float not int. > >Even just a show/hide pointer function should be enough, so apps like >TikiTest that draw their own mouse pointer can choose to disable the >system pointer. Ok, that sounds fine, can we show/hide the cursor easily on OSX? I know on SDL we simply call SDL_Hide_Cursor() (i think). > >I committed my changes to OSX's TikiTest, so it's now mouse-enabled >like the Dreamcast version. > Cool, I will refresh and do some more adjustments to the mouse on OSX shortly. Mike |