Loic Blot
eab652fd52
Fix some gcc 7.3 reported warnings
...
```
src/client/joystick_controller.h:85:2: warning: duplicate 'virtual' declaration specifier [-Wduplicate-decl-specifier]
virtual bool isTriggered(const irr::SEvent::SJoystickEvent &ev) const;
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/ext/new_allocator.h:140:22: warning: destructor called on non-final 'JoystickAxisCmb' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
destroy(_Up* __p) { __p->~_Up(); }
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/ext/new_allocator.h:140:22: warning: destructor called on non-final 'JoystickButtonCmb' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
destroy(_Up* __p) { __p->~_Up(); }
```
2018-03-23 22:12:48 +01:00
Loïc Blot
921151d97a
C++ modernize: Pragma once ( #6264 )
...
* Migrate cpp headers to pragma once
2017-08-17 22:19:39 +02:00
Loïc Blot
9dd0f952e0
Modernize client code ( #6250 )
...
* Various code style fixes
* Use range based for loops
* Use empty instead of empty objects
* Use C++11 default keyword for trivial constructors and destructors
* Drop some useless casts
* Use emplace_back instead of push_back to improve performance of some vectors push
2017-08-15 20:30:30 +02:00
Vincent Glize
af3badf7a9
C++11 cleanup on constructors dir client ( #6012 )
...
* C++11 cleanup on constructors dir client
2017-06-21 08:04:45 +02:00
Loïc Blot
f98bbe193e
Fix various copy instead of const ref reported by cppcheck (part 3) ( #5616 )
...
* Also remove 2 non declared but defined functions
* Make some functions around const ref changes const
2017-04-20 00:12:52 +02:00
rubenwardy
bce0d458d8
Add Joystick type detection and Xbox controller support
...
* Add joystick type detection (with joystick_type setting to override it)
* Fix multiple joysticks from interfering with each other by only reading from one (add joystick_id setting)
* Add support for Xbox controllers
2017-04-06 20:58:52 -07:00
est31
2060fd9cbe
Initial Gamepad support
...
Adds initial ingame gamepad support to minetest.
Full Formspec support is not implemented yet and
can be added by a later change.
2016-06-03 19:42:57 +02:00