Camilla Löwy
ea6c50d9e2
Cleanup
ago%!(EXTRA string=8 years)
Camilla Löwy
617c42b20a
Cleanup
ago%!(EXTRA string=8 years)
Camilla Löwy
953106e74d
Add support for SDL_GameControllerDB
...
This adds support for importing and applying mappings from the
SDL_GameControllerDB database.
Related to #900 .
ago%!(EXTRA string=8 years)
Camilla Löwy
cf2eab5b4e
Cocoa: Made axis auto-calibration less jumpy
ago%!(EXTRA string=8 years)
Camilla Löwy
55d0560746
Cocoa: Fix range handling for hats and buttons
...
Fixes #888 .
ago%!(EXTRA string=8 years)
Camilla Löwy
798d7c6d68
Implement glfwGetJoystickHats
...
This moves the buttons-as-hats logic to shared code and adds the
GLFW_JOYSTICK_HAT_BUTTONS input mode as a way to disable this legacy
behavior.
Fixes #889 .
ago%!(EXTRA string=8 years)
Camilla Löwy
9950d8a319
Cleanup
ago%!(EXTRA string=8 years)
Camilla Löwy
bfd564f257
Move internals to shared joystick objects
...
Preparation for gamecontrollerdb support and the gamepad API.
ago%!(EXTRA string=8 years)
Camilla Löwy
e7722af9a2
Cleanup
ago%!(EXTRA string=9 years)
Camilla Löwy
f4d0c83181
Paperwork done
ago%!(EXTRA string=9 years)
Camilla Berglund
efc6b35615
Rename joystick ID variables
ago%!(EXTRA string=9 years)
Camilla Berglund
53fafad915
Start 3.3
ago%!(EXTRA string=9 years)
Camilla Berglund
76801973e1
Cocoa: Clean up joystick globals
ago%!(EXTRA string=9 years)
Camilla Berglund
757eea2779
Update email address
ago%!(EXTRA string=9 years)
Camilla Berglund
6a8e169001
Update copyright notice year
ago%!(EXTRA string=9 years)
IntellectualKitty
3b0b5dacf5
Fix test for joystick presence in matchCallback
...
The matchCallback function has an initial loop to filter out redundant
joystick additions based on matching deviceRef values. However, the if
statement incorrectly combines this test with the condition that the
joystick is not present, which is obviously incorrect.
Closes #753 .
ago%!(EXTRA string=9 years)
Camilla Berglund
3aebb0bfe3
Cleanup
ago%!(EXTRA string=9 years)
Camilla Berglund
8a7fa306ce
Add glfwSetJoystickCallback
ago%!(EXTRA string=9 years)
Camilla Berglund
c580949417
Cleanup
ago%!(EXTRA string=9 years)
IntellectualKitty
ae4ece840d
Remove redundant OS X joystick polling
...
Closes #729 .
ago%!(EXTRA string=9 years)
Aaron Jacobs
49d228207f
Fix crash when joystick name unavailable on OS X
...
Fixes #694 .
Closes #701 .
ago%!(EXTRA string=9 years)
Camilla Berglund
12871db0f9
Only poll requested joystick on OS X
ago%!(EXTRA string=10 years)
Camilla Berglund
7fec7a0569
Make source file names more consistent
...
Use platform prefix for files specific to that platform AND that have no
credible alternative API on that platform.
The exception is WinMM, which will be replaced before 3.2.
ago%!(EXTRA string=10 years)
Camilla Berglund
12b6c56903
Add suffixes to platform specific helper functions
...
Also merge win32_tls.h into win32_platform.h.
ago%!(EXTRA string=10 years)
Camilla Berglund
0eccf75f65
Replace GL booleans with public macros
ago%!(EXTRA string=10 years)
Camilla Berglund
95a07f3340
Start 3.2
ago%!(EXTRA string=10 years)
Aaron Jacobs
755f913b02
Fix invalid types, null pointer use, memory leak
...
Closes #612 .
ago%!(EXTRA string=10 years)
Camilla Berglund
a97477337d
Updated changelog and credits, formatting.
...
Fixes #17 .
Closes #536 .
ago%!(EXTRA string=10 years)
Aaron Jacobs
fec6f187d1
Do not recurse over IOHIDElement children.
ago%!(EXTRA string=10 years)
Aaron Jacobs
1a96c294ee
Add support for joystick hot swapping on OS X.
ago%!(EXTRA string=10 years)
Arseny Kapoulkine
b4d4fc8f79
Optimize _glfwInitJoysticks on OS X.
...
This function used to enumerate all devices and capture all properties
of every device into a dictionary. This takes 180 ms on a MacBook Pro
without external devices and 280 ms with an external keyboard/mouse
attached.
Since we're only interested in a few properties, we can just get them
one by one - this reduces the time to <1 ms.
Note that we still use the dictionary to get the joystick elements.
For unknown reason this is required to get all axes/buttons - without
doing this we don't get any joystick elements in addJoystickElement.
Closes #332 .
ago%!(EXTRA string=11 years)
Camilla Berglund
c6e02c09ff
Fixed leaks of joystick mutable arrays.
ago%!(EXTRA string=11 years)
Camilla Berglund
8f2336f02c
Fixed release of get rule objects.
...
Partial revert of b4c03b992c
.
Fixes #262 .
ago%!(EXTRA string=11 years)
Camilla Berglund
48619a385e
Renamed joystick state members.
ago%!(EXTRA string=11 years)
Camilla Berglund
660034332d
Separated joystick state from window system state.
...
This is partially in preparation for pending support for additional
joystick APIs like XInput, DirectInput and IOHID.
ago%!(EXTRA string=11 years)
Shane Liesegang
b4c03b992c
Fixing memory leak in cocoa_joystick
...
Making sure that propsRef and valueRef get released no matter when we
break out of the loop.
Resolves #231 .
ago%!(EXTRA string=11 years)
Camilla Berglund
611006af18
Updated API version in comment headers.
ago%!(EXTRA string=12 years)
Camilla Berglund
b13c84f854
Removed joystick axis value negation on OS X.
ago%!(EXTRA string=12 years)
Camilla Berglund
4013f733fe
Reverted change of IOKit functions.
...
The previously used set of functions caused a regression where no axes
or buttons were reported. Fixes #78 .
ago%!(EXTRA string=12 years)
Camilla Berglund
3cfc400cf9
Simplified source file comment headers.
ago%!(EXTRA string=12 years)
Camilla Berglund
7a03ca8dbc
Removed superflous casts of allocated memory.
ago%!(EXTRA string=12 years)
Camilla Berglund
209a470a5f
Replaced all uses of malloc with calloc.
ago%!(EXTRA string=12 years)
Camilla Berglund
180a4ee640
Fixed constness of joystick data.
ago%!(EXTRA string=12 years)
Camilla Berglund
7f2eb7b15b
New joystick API.
ago%!(EXTRA string=12 years)
Camilla Berglund
58ae11778a
Replaced expensive IOKit function.
ago%!(EXTRA string=12 years)
Camilla Berglund
1ffd8f667f
Cleanup.
ago%!(EXTRA string=12 years)
Camilla Berglund
ec8273f249
Moved Cocoa joystick state to library struct.
ago%!(EXTRA string=12 years)
Camilla Berglund
d97dddc8c4
Simplified function comment headers.
ago%!(EXTRA string=12 years)
Camilla Berglund
3e78570a31
Removed duplicate documentation.
...
The public, platform, native, event and utility functions are already
documented in-source. Having duplicate documentation inevitably means
having them contradict one another. Furthermore, most of the function
descriptions simply repeated the name of the function.
ago%!(EXTRA string=13 years)
Camilla Berglund
3a773342e8
Renamed struct member to match other platforms.
ago%!(EXTRA string=13 years)