Rémi Verschelde
e9b045d9e5
Add "Godot Engine contributors" copyright line
2017-04-08 00:45:24 +02:00
Andreas Haas
8c06da0d49
Better handling of joypad device IDs.
...
Now InputDefault is responsible for giving out joypad device IDs to the platform, instead of each platform handling this itself.
This makes it possible for c++ modules to add their own "custom" gamepad devices, without the risk of messing up events in case the user also has regular gamepads attached (using the OS code).
For now, it's implemented for the main desktop platforms.
Possible targets for future work: android, uwp, javascript
2017-03-26 00:12:11 +01:00
Rémi Verschelde
f8db8a3faa
Bring that Whole New World to the Old Continent too
...
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6
.
2017-03-19 00:36:26 +01:00
Rémi Verschelde
d8223ffa75
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
(cherry picked from commit c7bc44d5ad
)
2017-01-12 19:15:30 +01:00
Mario Schlack
503f9ab9d9
Code cleanup in platform/x11
2016-07-21 21:11:34 +02:00
Rémi Verschelde
b6ac91c0e6
Removed unused variables (first pass)
...
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:03 +02:00
Wilhem Barbier
5d95072879
Remove the vibration effect from the joystick when stopping
2016-06-20 11:01:07 +02:00
Wilhem Barbier
f665200df7
Add joystick vibration support on Linux ( #5043 )
2016-06-15 07:25:35 +02:00
MSC
391095e0ef
memdelete 'joy_thread' + 'joy_mutex' on ::~joystick_linux()
2016-04-03 19:24:39 +02:00
Hubert Jarosz
4b14c18d13
fix possible crash in platform/x11/joystick_linux.cpp
...
ev may be tainted and out of MAX_KEY range,
which will cause joy->key_map[ev.code] to crash
2016-03-09 00:16:56 +01:00
hondres
3065187300
include libudev only on udev builds
2016-02-15 15:09:48 +01:00
hondres
b350ece864
x11: make dependancy on libudev optional
2016-02-14 15:13:11 +01:00
hondres
fef92c0fab
x11: more verbose checking for joystick capabilities
2016-02-07 00:17:16 +01:00
hondres
f7b1ab843c
x11: fix non-gamepad devices being detected as joysticks
2016-02-02 23:23:20 +01:00
hondres
2809b31f8c
close file descriptor if ioctls failed
2016-02-01 13:39:50 +01:00
hondres
29353808f0
remove dependancy on libevdev
2016-01-26 23:04:57 +01:00
hondres
17d664cf1d
send axis events only once per frame on linux
2016-01-03 02:24:43 +01:00
hondres
c60e1648ba
make num_buttons local, no need to keep in joystick struct
2016-01-02 03:52:44 +01:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
hondres
541c9039c5
Check pkg-config for libudev and enable gamepad code only if found. Linux only for now
2015-12-21 22:39:03 +01:00
Juan Linietsky
46dee92c8e
-fixed build system to use pkg-config for evdev
2015-12-21 10:37:26 -03:00
hondres
87dab29f4b
Use tabs instead of spaces for new gamepad code
2015-12-18 19:15:32 +01:00
hondres
af633c7941
Better gamepad support
2015-12-18 06:12:53 +01:00