Simple Directmedia Layer
Go to file
Sam Lantinga cc7b2fc512 Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events
Eric Wasylishen

This bug was reintroduced by https://hg.libsdl.org/SDL/rev/fcf24b38a28a

The steps to reproduce are the same: run the "testrelative" SDL demo with "--info all",
connect a USB mouse with a scroll wheel, and roll the scroll wheel one "notch". You'll get log output like:

testdraw2[1644:67222] INFO: SDL EVENT: Mouse: wheel scrolled 0 in x and 0 in y (reversed: 1) in window 1

As far as I can tell macOS doesn't have an API for getting the number of "wheel notches"; I get a deltaY of 0.100006 for one "notch", and it's heavily accelerated (if you roll the wheel quickly you'll get large deltas). So NSEvent's deltaY is only meant to be used for scrolling a scroll view, with the given distance in points, not something like selecting an item in a game.

Here's a temporary patch that at restores the foor/ceil in Cocoa_HandleMouseWheel.
Not ideal, but at least it restores the ability to scroll one notch of a mousewheel.
2018-03-10 21:13:50 -08:00
acinclude
android-project Try to dynamically create a default Android game controller mapping based on the buttons and axes on the controller. 2018-03-06 14:51:50 -08:00
android-project-ant
build-scripts
cmake Fixed bug 4027 - CheckLibSampleRate macro in sdlchecks.cmake never defines HAVE_LIBSAMPLERATE{,_SHARED}, so they're always reported as disabled by MESSAGE_TESTED_OPTION macro in macros.cmake 2018-02-13 13:25:59 -08:00
debian
docs On Android show the system UI when an SDL window is windowed, hide the system UI when it's fullscreen, like we do on iOS. 2018-02-11 18:23:37 -08:00
include Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened 2018-03-07 13:30:40 -08:00
src Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events 2018-03-10 21:13:50 -08:00
test Fixed bug 4092 - CMake support for building everything in the "test" directory 2018-02-24 08:59:58 -08:00
VisualC
VisualC-WinRT Windows Phone 8.0 is no longer supported 2018-02-09 08:03:03 -08:00
visualtest
Xcode Fixed bug 4088 - Fix Metal link errors with test programs in SDLTest.xcodeproj 2018-02-20 09:04:31 -08:00
Xcode-iOS Added missing file to tvOS build 2018-02-24 08:40:30 -08:00
.hgignore
Android.mk
autogen.sh
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt cmake: Set debug library name suffix per target instead of setting it globally. Don't add a suffix on android 2018-02-25 19:22:47 +02:00
configure Fixed bug 4101 - configure needs regenerating after changeset 11894 2018-03-02 22:48:15 -08:00
configure.in mir: Disable Mir by default as Mir supports Wayland clients 2018-02-23 11:24:26 -05:00
COPYING.txt
CREDITS.txt
INSTALL.txt
Makefile.in
Makefile.minimal
Makefile.pandora
Makefile.psp
Makefile.wiz
README-SDL.txt
README.txt
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in
SDL2.spec.in
SDL2Config.cmake
TODO.txt
VisualC.html
WhatsNew.txt Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened 2018-03-07 13:30:40 -08:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog
and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting
with README.md

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)