[SDL] SDL OS X 1.3 Not send Right Mouse Events

Sam Lantinga slouken at libsdl.org
Wed Dec 1 10:42:53 PST 2010


The right click support should be fixed with the latest changes.

I'm working on compiling it on Mac OS 10.5 now, and the relative mouse
motion is on my TODO list.

I'd love for anyone to tackle the other things on the list...

See ya!

On Wed, Nov 24, 2010 at 5:15 PM, Brian Barnes <ggadwa at charter.net> wrote:
> Eric Wing wrote:
>
>> Sorry, I've been preoccupied with other things and haven't had time to
>> seriously look at the 1.3 backend. Sam wrote most of the new backend I
>> believe. Awhile back, I was rambling that I would like to see the
>> backend rewritten so that instead of going through NSWindow for all
>> the events, I would like to move away from that and target several
>> different subcomponents. At the lowest level, I would like to see
>> implemented a bunch of things at the CALayer level which would give us
>> interesting possibilities of putting SDL rendering inside layers which
>> can be transformed around inside other views (think Cover Flow). It
>> also gives us some ability to unify the iOS and Mac code base.
>>
>> Then there would be a NSView container view wrapping of the layer for
>> Mac. NSView also potentially has access to implementing mouse events
>> like NSWindow. I haven't thought seriously about what the best way to
>> implement the mouse system is, but I think NSWindow might be my least
>> favorite. So your proposal (superficially) to me sounds like a good
>> one.
>>
>> But since I'm currently not writing anything on this, I'm merely a
>> backseat driver.
>
> Hi Eric!
>
> I'm guessing Sam didn't do it as he said he doesn't know cocoa well (that might have been somebody else that said that, sorry if I misunderstood.)  I don't either, I only know it now because I was going through the SDL code, but I'm no expert, which is why I just proposal instead of patch :)
>
> I put my code back to SDL 1.2 (through a bunch of ifdefs) because I need to get back to work, but anybody that wants what I came up with or put it together better, or have me test (which I can just switch back), please get ahold of me!
>
> Just to rehash, my things were:
> 1. Separate 10.4 and 10.6 into two separate targets (and ifdef out the touch package in SDL_cocoawindow)
> 2. Right mouse failures (the fix above)
> 3. Relative mouse mode broken (my proposal was to implement a SetNativeCursorPosWindow in SDL_VideoDevice, implement in the glue code, and do the re-centering in SDL_SendMouseMotion -- the only problem is handling the events that the recenter generates.)
> 4. Going out of full screen can move the windows around in OS X
>
> [>] Brian
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



-- 
    -Sam Lantinga, Founder and President, Galaxy Gameworks LLC



More information about the SDL mailing list