minetest/src/client
NeroBurner 1d69a23ba4
Joystick sensitivity for player movement (#11262)
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>
2021-08-27 20:24:24 +02:00
..
meshgen Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
render Move updating shadows outside of RenderingCore::drawAll. (#11491) 2021-08-12 20:07:09 +02:00
shadows Move updating shadows outside of RenderingCore::drawAll. (#11491) 2021-08-12 20:07:09 +02:00
CMakeLists.txt Shadow mapping render pass (#11244) 2021-06-06 18:51:21 +02:00
activeobjectmgr.cpp ContentCAO: Fix segfault on quit (attached) 2019-10-09 20:03:31 +02:00
activeobjectmgr.h Add an activeobject manager to hold active objects (#7939) 2018-12-13 20:18:54 +01:00
camera.cpp refacto: protect some RenderingEngine::get_scene_manager 2021-05-03 19:49:19 +02:00
camera.h refacto: protect some RenderingEngine::get_scene_manager 2021-05-03 19:49:19 +02:00
client.cpp Add fwgettext util function 2021-08-19 20:13:25 +02:00
client.h fix: extractZipFile is not part of Client but more generic. 2021-05-06 16:01:52 +02:00
clientenvironment.cpp refacto: RenderingEngine::get_scene_manager() is now not callable from singleton 2021-05-03 19:49:19 +02:00
clientenvironment.h Attachments: Fix attachments to temporary removed objects (#8989) 2019-10-02 19:11:27 +02:00
clientevent.h Add bold, italic and monospace font styling for HUD text elements (#11478) 2021-07-27 19:11:46 +02:00
clientlauncher.cpp Perform some quality assurance for translation strings (#11375) 2021-06-23 17:35:50 +01:00
clientlauncher.h Drop --videomodes, fullscreen_bpp and high_precision_fpu settings 2021-06-16 17:41:34 +02:00
clientmap.cpp Distribute shadow map update over multiple frames to reduce stutter (#11422) 2021-07-25 12:36:23 +02:00
clientmap.h Distribute shadow map update over multiple frames to reduce stutter (#11422) 2021-07-25 12:36:23 +02:00
clientmedia.cpp Sort out cURL timeouts and increase default 2021-04-02 00:19:39 +02:00
clientmedia.h Sort out cURL timeouts and increase default 2021-04-02 00:19:39 +02:00
clientobject.cpp Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
clientobject.h fix: some code tidy about includes & irr namespaces 2021-05-03 19:49:19 +02:00
clientsimpleobject.h Move clientsimpleobject.h to client folder (#9630) 2020-04-10 20:10:51 +02:00
clouds.cpp Fix cloud fog being broken for high clouds 2021-05-29 11:44:31 +02:00
clouds.h fix: some code tidy about includes & irr namespaces 2021-05-03 19:49:19 +02:00
content_cao.cpp Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
content_cao.h fix: some code tidy about includes & irr namespaces 2021-05-03 19:49:19 +02:00
content_cso.cpp Merge pull request #8776 from osjc/FixGetNode 2019-08-10 19:45:44 +02:00
content_cso.h Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
content_mapblock.cpp Add wallmounted support for plantlike and plantlike_rooted nodes (#11379) 2021-07-15 21:19:59 +02:00
content_mapblock.h Add wallmounted support for plantlike and plantlike_rooted nodes (#11379) 2021-07-15 21:19:59 +02:00
event_manager.h Darwin platform build fix (#10376) 2020-09-09 19:12:03 +02:00
filecache.cpp Server pushing media at runtime (#9961) 2020-06-13 19:03:26 +02:00
filecache.h Server pushing media at runtime (#9961) 2020-06-13 19:03:26 +02:00
fontengine.cpp fontengine: Fix crash loading PNG/XML fonts from paths without dot 2021-06-01 19:47:41 +02:00
fontengine.h Replace fallback font nonsense with automatic per-glyph fallback (#11084) 2021-03-29 19:55:24 +02:00
game.cpp Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
game.h refacto: RenderingEngine is now better hidden 2021-05-03 19:49:19 +02:00
gameui.cpp Fix 6th line of infotext being cut off in half (#11456) 2021-08-23 22:13:17 +02:00
gameui.h Require 'basic_debug' priv to view gameplay-relevant debug info, require 'debug' priv to view wireframe (#9315) 2021-06-24 21:21:19 +03:00
guiscalingfilter.cpp Use Irrlicht functions to query npot texture support 2021-05-05 22:49:44 +02:00
guiscalingfilter.h Make bgcolor tint button background images (#9818) 2020-08-29 16:41:19 +01:00
hud.cpp Show status message when changing block bounds (#11556) 2021-08-21 13:53:49 +02:00
hud.h Show status message when changing block bounds (#11556) 2021-08-21 13:53:49 +02:00
imagefilters.cpp Fix inconsistent integer comparison warnings 2021-08-17 20:00:47 +02:00
imagefilters.h Enable cleanTransparent filter for mipmapping and improve its' algorithm (#11145) 2021-04-20 19:50:19 +02:00
inputhandler.cpp Add a key to toggle map block bounds (#11172) 2021-04-20 19:23:31 +02:00
inputhandler.h Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
joystick_controller.cpp Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
joystick_controller.h Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
keycode.cpp Irrlicht support code maintenance 2021-03-31 13:15:47 +02:00
keycode.h Revert "Replace MyEventReceiver KeyList with std::unordered_set" (#10622) 2020-11-12 19:16:02 +01:00
keys.h Add a key to toggle map block bounds (#11172) 2021-04-20 19:23:31 +02:00
localplayer.cpp Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
localplayer.h Camera: Fix shooting line offsets (#9681) 2020-04-16 18:32:07 +02:00
mapblock_mesh.cpp Fix scaled world-aligned textures being aligned inconsistently for non-normal drawtypes 2021-08-19 20:14:04 +02:00
mapblock_mesh.h Remove dead code (#10845) 2021-01-22 15:09:26 +00:00
mesh.cpp Irrlicht support code maintenance 2021-03-31 13:15:47 +02:00
mesh.h content_cao: Support texture animation for upright_sprite (#10020) 2020-07-30 17:39:57 +02:00
mesh_generator_thread.cpp Remove all bump mapping and parallax occlusion related code. 2020-10-17 13:09:16 -07:00
mesh_generator_thread.h Remove dead code (#10845) 2021-01-22 15:09:26 +00:00
minimap.cpp refacto: RenderingEngine is now better hidden 2021-05-03 19:49:19 +02:00
minimap.h Remove dead code (#10845) 2021-01-22 15:09:26 +00:00
particles.cpp refacto: RenderingEngine::get_scene_manager() is now not callable from singleton 2021-05-03 19:49:19 +02:00
particles.h Implement spawning particles with node texture appearance 2020-05-23 22:52:21 +02:00
renderingengine.cpp Remove unused header includes 2021-07-21 22:07:13 +02:00
renderingengine.h Refactor video driver name retrieval (#11413) 2021-07-11 09:50:34 +02:00
shader.cpp Improve shadow rendering with non-default camera FOV (#11385) 2021-07-11 08:15:19 -07:00
shader.h Fix deprecated calls with Irrlicht 1.9 2021-03-16 23:27:15 +01:00
sky.cpp Shadow mapping render pass (#11244) 2021-06-06 18:51:21 +02:00
sky.h Shadow mapping render pass (#11244) 2021-06-06 18:51:21 +02:00
sound.cpp Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
sound.h Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
sound_openal.cpp OpenAL: Free buffers on quit 2021-08-03 20:29:55 +02:00
sound_openal.h Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
tile.cpp Remove unsupported extensions from list in tile.cpp 2021-07-29 21:47:08 +02:00
tile.h Use Irrlicht functions to query npot texture support 2021-05-05 22:49:44 +02:00
wieldmesh.cpp Fix segfault caused by shadow map on exit 2021-08-12 20:08:39 +02:00
wieldmesh.h Shadow mapping render pass (#11244) 2021-06-06 18:51:21 +02:00