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=10 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=12 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=13 years)
Camilla Berglund
d97dddc8c4
Simplified function comment headers.
ago%!(EXTRA string=13 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)
Camilla Berglund
e70ced5e05
Fixed bad editing in Cocoa joystick code.
ago%!(EXTRA string=13 years)
Camilla Berglund
93a1d1c226
Added stubs, implemented on Linux and Cocoa.
ago%!(EXTRA string=13 years)
Camilla Berglund
2502e4d6f3
Renamed glfwGetJoystickPos to glfwGetJoystickAxes.
ago%!(EXTRA string=13 years)
Camilla Berglund
e10d935efe
API tag and error message cleanup.
ago%!(EXTRA string=13 years)
Camilla Berglund
bb635729ec
Fixed spelling of GLFW.
ago%!(EXTRA string=13 years)
Camilla Berglund
bf3486f077
Comment updates and formatting.
ago%!(EXTRA string=13 years)
Torsten Walluhn
3f39c5ae42
Fixed compiling issues on mac os x with llvm-gcc 4.2
ago%!(EXTRA string=13 years)
Camilla Berglund
0c92fb8500
Added clearing of global joystick data.
ago%!(EXTRA string=13 years)
Camilla Berglund
ac653761b9
Formatting.
ago%!(EXTRA string=13 years)
Camilla Berglund
8390121869
Fixed legacy C warnings.
ago%!(EXTRA string=13 years)
Osman Keskin
f84990bffd
Implemented joystick hat support for OS X and Win32.
ago%!(EXTRA string=13 years)
Camilla Berglund
c9820b2ba5
Fixed issues found with static analysis.
ago%!(EXTRA string=13 years)