aboutsummaryrefslogtreecommitdiff
path: root/src/client/joystick_controller.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enforce limits of settings that could cause buggy behaviour (#12450)SmallJoker2022-07-091-5/+7
| | | Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
* Add joystick layout for DragonRise GameCube controller (#11467)Isabelle COWAN-BERGMAN2021-10-311-0/+50
|
* Joystick sensitivity for player movement (#11262)NeroBurner2021-08-271-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit deprecates the forward, backward, left, and right binary inputs currently used for player movement in the PlayerControl struct. In their place, it adds the movement_speed and movement_direction values, which represents the player movement is a polar coordinate system. movement_speed is a scalar from 0.0 to 1.0. movement_direction is an angle from 0 to +-Pi: FWD 0 _ LFT / \ RGT -Pi/2 | | +Pi/2 \_/ +-Pi BCK Boolean movement bits will still be set for server telegrams and Lua script invocations to provide full backward compatibility. When generating these values from an analog input, a direction is considered active when it is 22.5 degrees away from either orthogonal axis. Co-authored-by: Markus Koch <markus@notsyncing.net> Co-authored-by: sfan5 <sfan5@live.de>
* Use "Aux1" key name consistently everywhereWuzzy2021-02-241-3/+3
|
* Fix some more joystick issues (#10624)Markus2020-12-191-24/+26
|
* Joystick: Remap joystick-specific KeyTypes to generic onesMarkus Koch2020-11-091-11/+11
| | | | | | | | | | | | | | According to the following table: * MOUSE_L -> DIG * MOUSE_R -> PLACE * SCROLL_UP -> HOTBAR_NEXT * SCROLL_DOWN -> HOTBAR_PREV This commit entirely removes the special KeyTypes used for joysticks. Support for the MOUSE KeyTypes had already been removed in the main game code without adapting the joystick code, breaking joystick input. This commit restores joystick functionality.
* Move files to subdirectories (#6599)Vitaliy2017-11-081-1/+1
| | | | * Move files around
* Modernize client code (#6250)Loïc Blot2017-08-151-10/+10
| | | | | | | | * 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
* C++11 cleanup on constructors dir client (#6012)Vincent Glize2017-06-211-5/+2
| | | | * C++11 cleanup on constructors dir client
* Clean up getTime helpersShadowNinja2017-04-281-1/+2
| | | | | | This increases size of the getTime return values to 64 bits. It also removes the TimeGetter classes since the getTime functions are now very precise.
* Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)Loïc Blot2017-04-201-1/+2
| | | | * Also remove 2 non declared but defined functions * Make some functions around const ref changes const
* Fix always using the xbox layout (reported by coverity).Ekdohibs2017-04-181-1/+1
|
* Fix signed/unsigned conversion warningrubenwardy2017-04-071-2/+2
| | | | | There was no bug here (as I checked for negativeness), however it's good to get rid of warnings.
* Add Joystick type detection and Xbox controller supportrubenwardy2017-04-061-12/+92
| | | | | | * 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
* Initial Gamepad supportest312016-06-031-0/+179
Adds initial ingame gamepad support to minetest. Full Formspec support is not implemented yet and can be added by a later change.