SDL.qpg.in
author Sam Lantinga <slouken@libsdl.org>
Thu, 02 Apr 2009 04:43:36 +0000
branchSDL-1.2
changeset 4167 a6f635e5eaa6
parent 1289 c07c6ef7c93e
child 6130 987c365cc7bf
permissions -rw-r--r--
Fixed bug #611

From Tim Angus 2008-08-12 11:18:06

I'm one of the maintainers of ioquake3.org, an updated version of the
Quake 3 engine. Relatively recently, we moved ioq3 to use SDL as a
replacement for 95% of the platform specific code that was there. On the
whole it's doing a great job but unfortunately since the move we've been
getting complaints about the quality of the mouse input on the Windows
platform to the point where for many the game is unplayable. Put in
other terms, the current stable SDL 1.2 is basically not fit for purpose
if you need high quality mouse input as you do in a first person shooter.

Over the weekend I decided to pull my finger out and actually figure out
what's going on. There are basically two major problems. Firstly, when
using the "windib" driver, mouse input is gathered via the WM_MOUSEMOVE
message. Googling for this indicates that often this is known to result
in "spurious" and/or "missing" mouse movement events; this is the
primary cause of the poor mouse input. The second problem is that the
"directx" driver does not work at all in combination with OpenGL meaning
that you can't use DirectInput if your application also uses OpenGL. In
other words you're locked into using the "windib" driver and its poor
mouse input.

In order to address these problems I've done the following:

* Remove WM_MOUSEMOVE based motion event generation and replace with
calls to GetCursorPos which seems much more reliable. In order to
achieve this I've moved mouse motion out into a separate function that
is called once per DIB_PumpEvents.

* Remove the restriction on the "directx" driver being inoperable in
combination with OpenGL. There is a bug for this issues that I've
hijacked to a certain extent
(http://bugzilla.libsdl.org/show_bug.cgi?id=265). I'm the first to admit
I don't really understand why this restriction is there in the first
place. The commit message for the bug fix that introduced this
restriction (r581) isn't very elaborate and I couldn't see any other bug
tracking the issue. If anyone has more information on the bug that was
avoided by r581 it would be helpful as I/someone could then look into
addressing the problem without disabling the "directx" driver.

* I've also removed the restriction on not being allowed to use
DirectInput in windowed mode. I couldn't see any reason for this, at
least not from our perspective. I have my suspicions that it'll be
something like matching up the cursor with the mouse coordinates...

* I bumped up the DirectInput API used to version 7 in order to get
access to mouse buttons 4-7. I've had to inject a little bit of the DX7
headers into SDL there as the MinGW ones aren't up to date in this respect.
     1 <QPG:Generation>
     2    <QPG:Options>
     3       <QPG:User unattended="yes" verbosity="0" listfiles="yes"/>
     4       <QPG:Defaults type="qnx_package"/>
     5       <QPG:Source></QPG:Source>
     6       <QPG:Release date="today" number="+"/>
     7       <QPG:Build></QPG:Build>
     8       <QPG:FileSorting strip="yes"/>
     9       <QPG:Package targets="standart"/>
    10       <QPG:Repository generate="yes"/>
    11       <QPG:FinalDir></QPG:FinalDir>
    12       <QPG:Cleanup></QPG:Cleanup>
    13    </QPG:Options>
    14 
    15    <QPG:Responsible>
    16       <QPG:Company>QNX.ORG.RU Community</QPG:Company>
    17       <QPG:Department></QPG:Department>
    18       <QPG:Group></QPG:Group>
    19       <QPG:Team>QNX.ORG.RU Team</QPG:Team>
    20       <QPG:Employee>Mike Gorchak</QPG:Employee>
    21       <QPG:EmailAddress>mike@malva.ua</QPG:EmailAddress>
    22    </QPG:Responsible>
    23 
    24    <QPG:Values>
    25       <QPG:Files>
    26          <QPG:Add file="./COPYING" install="LicenseUrl/" handling="repdata"/>
    27          <QPG:Add permissions="0755" file="./src/.libs/libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@LT_AGE@" install="/usr/lib/"/>
    28          <QPG:Add filetype="symlink" file="libSDL.so" install="/usr/lib/" linkto="libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@LT_AGE@"/>
    29          <QPG:Add permissions="0644" file="./src/.libs/libSDL.a" install="/usr/lib/"/>
    30          <QPG:Add permissions="0644" file="./src/.libs/libSDL.lai" install="/usr/lib/libSDL.la"/>
    31          <QPG:Add permissions="0644" file="./src/main/libSDLmain.a" install="/usr/lib/"/>
    32          <QPG:Add permissions="0644" file="./include/*.h" install="/usr/include/SDL/"/>
    33          <QPG:Add permissions="0755" file="./sdl-config" install="/usr/bin/"/>
    34          <QPG:Add permissions="0644" file="./BUGS" install="/usr/share/doc/SDL12/"/>
    35          <QPG:Add permissions="0644" file="./COPYING" install="/usr/share/doc/SDL12/"/>
    36          <QPG:Add permissions="0644" file="./CREDITS" install="/usr/share/doc/SDL12/"/>
    37          <QPG:Add permissions="0644" file="./INSTALL" install="/usr/share/doc/SDL12/"/>
    38          <QPG:Add permissions="0644" file="./README" install="/usr/share/doc/SDL12/"/>
    39          <QPG:Add permissions="0644" file="./README-SDL.txt" install="/usr/share/doc/SDL12/"/>
    40          <QPG:Add permissions="0644" file="./README.CVS" install="/usr/share/doc/SDL12/"/>
    41          <QPG:Add permissions="0644" file="./README.QNX" install="/usr/share/doc/SDL12/"/>
    42          <QPG:Add permissions="0644" file="./TODO" install="/usr/share/doc/SDL12/"/>
    43          <QPG:Add permissions="0644" file="./WhatsNew" install="/usr/share/doc/SDL12/"/>
    44          <QPG:Add permissions="0644" file="./docs.html" install="/usr/share/doc/SDL12/Changes.html"/>
    45          <QPG:Add permissions="0644" file="./docs/index.html" install="/usr/share/doc/SDL12/docs/"/>
    46          <QPG:Add permissions="0644" file="./docs/html/*.html" install="/usr/share/doc/SDL12/docs/html/"/>
    47          <QPG:Add permissions="0644" file="./docs/man3/*.3" install="/usr/share/man/man3/"/>
    48          <QPG:Add permissions="0644" file="./sdl.m4" install="/usr/share/aclocal/"/>
    49       </QPG:Files>
    50       <QPG:PackageFilter>
    51          <QPM:PackageManifest>
    52 
    53             <QPM:PackageDescription>
    54                <QPM:PackageType>Library</QPM:PackageType>
    55                <QPM:PackageName>SDL</QPM:PackageName>
    56                <QPM:PackageReleaseNumber>1</QPM:PackageReleaseNumber>
    57                <QPM:PackageRepository>http://qnx.org.ru/repository</QPM:PackageRepository>
    58                <QPM:FileVersion>2.6</QPM:FileVersion>
    59             </QPM:PackageDescription>
    60 
    61             <QPM:ProductDescription>
    62                <QPM:ProductName>Simple DirectMedia Layer (SDL)</QPM:ProductName>
    63                <QPM:ProductIdentifier>SDL</QPM:ProductIdentifier>
    64                <QPM:ProductEmail>slouken@libsdl.org</QPM:ProductEmail>
    65                <QPM:VendorName>Public</QPM:VendorName>
    66                <QPM:VendorInstallName>public</QPM:VendorInstallName>
    67                <QPM:VendorURL>http://www.libsdl.org</QPM:VendorURL>
    68                <QPM:VendorEmbedURL/>
    69                <QPM:VendorEmail>slouken@libsdl.org</QPM:VendorEmail>
    70                <QPM:AuthorName>Sam Lantinga</QPM:AuthorName>
    71                <QPM:AuthorURL>http://www.libsdl.org</QPM:AuthorURL>
    72                <QPM:AuthorEmbedURL/>
    73                <QPM:AuthorEmail>slouken@libsdl.org</QPM:AuthorEmail>
    74                <QPM:ProductIconSmall/>
    75                <QPM:ProductIconLarge/>
    76                <QPM:ProductDescriptionShort>This is the Simple DirectMedia Layer (SDL), a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms.</QPM:ProductDescriptionShort>
    77                <QPM:ProductDescriptionLong>This is the Simple DirectMedia Layer (SDL), a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms. This is the libraries, include files and other resources you can use to develop and run SDL applications.</QPM:ProductDescriptionLong>
    78                <QPM:ProductDescriptionURL>http://www.libsdl.org</QPM:ProductDescriptionURL>
    79                <QPM:ProductDescriptionEmbedURL/>
    80             </QPM:ProductDescription>
    81 
    82             <QPM:ReleaseDescription>
    83                <QPM:ReleaseVersion>@VERSION@</QPM:ReleaseVersion>
    84                <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
    85                <QPM:ReleaseStability>Stable</QPM:ReleaseStability>
    86                <QPM:ReleaseNoteMinor/>
    87                <QPM:ReleaseNoteMajor/>
    88                <QPM:ReleaseBuild>1</QPM:ReleaseBuild>
    89                <QPM:CountryExclude/>
    90                <QPM:ReleaseCopyright>GNU Lesser General Public License</QPM:ReleaseCopyright>
    91             </QPM:ReleaseDescription>
    92 
    93             <QPM:ContentDescription>
    94                <QPM:ContentTopic xmlmultiple="true">Software Development/Libraries and Extensions/C Libraries</QPM:ContentTopic>
    95                <QPM:ContentKeyword>SDL,audio,graphics,demos,games,emulators,direct,media,layer</QPM:ContentKeyword>
    96                <QPM:TargetOS>qnx6</QPM:TargetOS>
    97                <QPM:HostOS>none</QPM:HostOS>
    98                <QPM:DisplayEnvironment xmlmultiple="true">Photon</QPM:DisplayEnvironment>
    99                <QPM:DisplayEnvironment xmlmultiple="true">Console</QPM:DisplayEnvironment>
   100                <QPM:TargetAudience xmlmultiple="true">Developer</QPM:TargetAudience>
   101                <QPM:TargetAudience xmlmultiple="true">User</QPM:TargetAudience>
   102             </QPM:ContentDescription>
   103             <QPM:LicenseUrl>repdata://LicenseUrl/COPYING</QPM:LicenseUrl>
   104          </QPM:PackageManifest>
   105       </QPG:PackageFilter>
   106 
   107       <QPG:PackageFilter proc="none" target="none">
   108          <QPM:PackageManifest>
   109             <QPM:ProductInstallationDependencies>
   110                <QPM:ProductRequirements></QPM:ProductRequirements>
   111             </QPM:ProductInstallationDependencies>
   112          </QPM:PackageManifest>
   113       </QPG:PackageFilter>
   114 
   115       <QPG:PackageFilter proc="x86" target="none">
   116          <QPM:PackageManifest>
   117             <QPM:ProductInstallationDependencies>
   118                <QPM:ProductRequirements></QPM:ProductRequirements>
   119             </QPM:ProductInstallationDependencies>
   120          </QPM:PackageManifest>
   121       </QPG:PackageFilter>
   122 
   123       <QPG:PackageFilter proc="none" target="x86">
   124          <QPM:PackageManifest>
   125             <QPM:ProductInstallationDependencies>
   126                <QPM:ProductRequirements></QPM:ProductRequirements>
   127             </QPM:ProductInstallationDependencies>
   128          </QPM:PackageManifest>
   129       </QPG:PackageFilter>
   130 
   131       <QPG:PackageFilter proc="x86" target="x86">
   132          <QPM:PackageManifest>
   133             <QPM:ProductInstallationDependencies>
   134                <QPM:ProductRequirements></QPM:ProductRequirements>
   135             </QPM:ProductInstallationDependencies>
   136          </QPM:PackageManifest>
   137       </QPG:PackageFilter>
   138 
   139    </QPG:Values>
   140 </QPG:Generation>