[SDL] SDL OS X 1.3 Not send Right Mouse Events
ewmailing at gmail.com
Tue Nov 23 17:38:13 PST 2010
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
But since I'm currently not writing anything on this, I'm merely a
Beginning iPhone Games Development
On 11/21/10, Brian Barnes <ggadwa at charter.net> wrote:
> Hey Jiang;
>>I believe the same issue has been discussed a while ago .
>>I wrote a patch (attached here) to fix this, apparently it isn't included.
>>I'm not sure if the patch still applies. Good luck.
> It looks like parts of that patch are in there -- but I think we might be
> looking at two bugs (one only under certain circumstances), a rollback, or
> just an incomplete patching job. I *think* what might be the real solution
> to this is remove mouse events from the window level and always capture them
> at the app level; this way they never get eaten by anything special at the
> window level. That would also take removing them at the window level
> (relatively self contained) and always catching them at the app level (which
> the code already exists.) It'd probably simplify the code a bit.
> This is something the OS X guy -- and who is that?? -- would have to decide
> on to do.
> There's a lot that's just broken, but until somebody with some power and
> better understanding steps up, nothing is going to get done, and 1.3 is
> going to be very broken. I'm literally just experimenting with the code to
> fix things, I have no idea if these fixes are proper or warranted.
> So far:
> 1. Right mouse button doesn't work
> 2. All the "grabbed input" methods don't work like the docs say
> 3. Full screen modes re-arrange the desktop
> 4. XCode project doesn't compile without changes to NSTouch interface
> Somebody please speak up :)
> [>] Brian
> SDL mailing list
> SDL at lists.libsdl.org
More information about the SDL