Mercurial > sdl-ios-xcode
view docs/index.html @ 983:7f08bd66f1ca
Date: Fri, 19 Nov 2004 06:23:53 -0800 (PST)
From: Eric Wing
Subject: OS X Mouse inversion problem fix (again)
Here's yet another patch for the OS X mouse inversion
problem. This should fix the problem once and for all.
I know I've said this before, but *This time for
sure!* :)
If you recall, my last patch broke the non-OpenGL
windowed code and caused the inversion to occur there
instead. Max submitted a patch that partially reverted
the changes back which included the os version hack
which is currently the most recent CVS.
Aaron Sullivan identified and reported to the mailing
list the other day, that the last partial regression
of the code broke OS X 10.2. Looking over the results,
I'm thinking that I was slightly more successful than
I thought at unifying the code. I think I was trying
to unify the code base for OpenGL and non-OpenGL
windowed modes for all versions of the OS. It looks
like I failed at at unifying the OpenGL and non-OpenGL
code, but I did succeed at unifying the OS versions.
Thus, we no longer need the hack for the OS version
checks. The partial regression still included an OS
check which is what broke things for < 10.3.
Attached is the patch for SDL_QuartzWM.m. It basically
is a half-line change that removes one of the two
checks that decides if the mouse coordinates need to
be inverted, i.e:
if (system_version >= 0x1030 &&
(SDL_VideoSurface->flags & SDL_OPENGL) )
becomes this:
if(SDL_VideoSurface->flags & SDL_OPENGL)
With Aaron's outstanding help, we have collectively
tested:
windowed OpenGL
windowed non-OpenGL
fullscreen OpenGL
fullscreen non-OpenGL
under OS X 10.2 (Jaguar), 10.3 (Panther), and 10.4
(Tiger).
We don't have access to 10.0 or 10.1, but since the
original problem didn't materialize until 10.3, I'm
hopeful that testing 10.2 is sufficient. And now that
the code is uniform, I'm also hoping we'll be safe
moving forward to deal with future revisions of the OS
with this issue.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 21 Nov 2004 00:57:47 +0000 |
parents | 74212992fb08 |
children | 14717b52abc0 |
line wrap: on
line source
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN"> <HTML ><HEAD ><TITLE >Introduction</TITLE > </HEAD ><BODY BGCOLOR="#FFF8DC" TEXT="#000000" LINK="#0000ee" VLINK="#551a8b" ALINK="#ff0000" ><DIV CLASS="NAVHEADER" > <HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="PREFACE" ><H1 ><A NAME="AEN8" >Introduction</A ></H1 ><P >This library is designed to make it easy to write games that run on Linux, Win32 and BeOS using the various native high-performance media interfaces, (for video, audio, etc) and presenting a single source-code level API to your application. This is a fairly low level API, but using this, completely portable applications can be written with a great deal of flexibility.</P ><P >The library is loaded as a dynamically linked library on its native platform, and is currently compiled natively for Linux, compiled for Win32 using a Linux hosted GCC <A HREF="http://www.libsdl.org/Xmingw32/" TARGET="_top" >cross-compilation</A > environment, and compiled using the EGCS C++ compiler under BeOS.</P ><P >An introduction to SDL can be found online at: <A HREF="http://www.libsdl.org/intro/toc.html" TARGET="_top" >http://www.libsdl.org/intro/</A > </P ><P >There are code examples on each of the main library pages, and there are fully fleshed example C++ classes and programs in the examples archive, available on the <A HREF="http://www.libsdl.org/download.html" TARGET="_top" >SDL download page</A >.</P ><P >For an introduction to basic multi-media programming concepts, you might try some of the following links: <P ></P ><UL ><LI ><P ><A HREF="http://www.ziron.com/links/" TARGET="_top" >Game Programming Links</A ></P ></LI ><LI ><P ><A HREF="http://developer.dungeon-crawl.com/" TARGET="_top" >Game Developer Search Engine</A ></P ></LI ></UL ></P ><P >Enjoy!</P ><P > Sam Lantinga <TT CLASS="EMAIL" ><<A HREF="mailto:slouken@libsdl.org" ><A HREF="mailto:slouken@libsdl.org" TARGET="_top" >slouken@libsdl.org</A ></A >></TT ></P > <P> <br><br><HR> <H1>Table of Contents</H1> <UL> <LI><A HREF="html/index.html">Full Table of Contents</A></LI> <LI><A HREF="html/guide.html">The SDL Guide</A></LI> <LI><A HREF="html/reference.html">The SDL Reference</A></LI> <UL> <LI><A HREF="html/general.html">Initialization</A></LI> <LI><A HREF="html/video.html">Video</A></LI> <LI><A HREF="html/wm.html">Window Manager</A></LI> <LI><A HREF="html/event.html">Event Handling</A></LI> <LI><A HREF="html/joystick.html">Joystick</A></LI> <LI><A HREF="html/audio.html">Audio</A></LI> <LI><A HREF="html/cdrom.html">CDROM</A></LI> <LI><A HREF="html/thread.html">Threads</A></LI> <LI><A HREF="html/time.html">Timers</A></LI> </UL> </UL> </DIV ></BODY ></HTML >