minetest/src/script/lua_api
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
..
CMakeLists.txt Revert "Revert CSM particles commit to fix particle spawner bug for 5.0.0 (#8288)" 2019-02-26 08:53:53 +01:00
l_areastore.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_areastore.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_auth.cpp Auth API: Error when accessed prior to ServerEnv init (#11398) 2021-06-30 20:42:26 +02:00
l_auth.h Replace auth.txt with SQLite auth database (#7279) 2018-08-05 13:13:38 +02:00
l_base.cpp Fix segfault in deprecation logging due to tail call, log by default (#10174) 2020-10-31 18:19:23 +00:00
l_base.h Fix segfault in deprecation logging due to tail call, log by default (#10174) 2020-10-31 18:19:23 +00:00
l_camera.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_camera.h Code modernization: subfolders (#6283) 2017-08-19 22:23:47 +02:00
l_client.cpp Various features and fixes 2020-04-11 13:12:51 +02:00
l_client.h Implement minetest.sound_fade() 2020-04-11 13:12:51 +02:00
l_craft.cpp Fix some issues with minetest.clear_craft (#8712) 2019-08-10 23:28:00 +02:00
l_craft.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_env.cpp Add core.compare_block_status function (#11247) 2021-05-30 20:24:12 +02:00
l_env.h Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333) 2021-06-20 17:21:35 +02:00
l_http.cpp Fix curl_timeout being ignored for Lua HTTP fetches 2021-05-17 17:12:30 +02:00
l_http.h Add PUT and DELETE request + specific method value to HTTP API (#9909) 2020-07-29 23:16:21 +02:00
l_internal.h Fix incorrect deprecation hints 2020-11-01 12:52:14 +01:00
l_inventory.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_inventory.h Add core.remove_detached_inventory (#7684) 2018-10-10 20:48:58 +02:00
l_item.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_item.h Add a short_description to be used by mods (#8980) 2020-10-09 19:11:21 +01:00
l_itemstackmeta.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_itemstackmeta.h Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_localplayer.cpp Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
l_localplayer.h Various features and fixes 2020-04-11 13:12:51 +02:00
l_mainmenu.cpp Refactor video driver name retrieval (#11413) 2021-07-11 09:50:34 +02:00
l_mainmenu.h Drop --videomodes, fullscreen_bpp and high_precision_fpu settings 2021-06-16 17:41:34 +02:00
l_mapgen.cpp Fix broken `BiomeGen` abstraction (#11107) 2021-03-23 15:43:26 +01:00
l_mapgen.h Allow more than 255 biomes, document new maximum (#9855) 2020-05-20 22:16:14 +01:00
l_metadata.cpp Revert "Auto delete MetaData when = 0 (#8770)" (#10183) 2020-07-16 19:11:24 +02:00
l_metadata.h Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_minimap.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_minimap.h Code modernization: subfolders (#6283) 2017-08-19 22:23:47 +02:00
l_modchannels.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_modchannels.h Fix mod channels crash (#7481) 2018-06-27 17:45:40 +02:00
l_nodemeta.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_nodemeta.h Send only changed node metadata to clients instead of whole mapblock (#5268) 2018-12-04 20:37:48 +01:00
l_nodetimer.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_nodetimer.h Reduce ServerEnvironment propagation (#9642) 2020-04-11 19:59:43 +02:00
l_noise.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_noise.h Log deprecated Lua function calls (#7491) 2018-07-01 12:31:49 +02:00
l_object.cpp Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
l_object.h Clean up l_object.cpp (#10512) 2020-10-22 16:18:01 +01:00
l_particles.cpp Implement spawning particles with node texture appearance 2020-05-23 22:52:21 +02:00
l_particles.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_particles_local.cpp Implement spawning particles with node texture appearance 2020-05-23 22:52:21 +02:00
l_particles_local.h Modernize include guards and add missing ones (#9898) 2020-05-23 13:23:05 +02:00
l_playermeta.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_playermeta.h reportMetadataChange; Silence clang warnings 2018-12-21 19:05:29 +01:00
l_rollback.cpp SAPI: Mark all Lua API functions requiring envlock 2015-10-25 23:06:48 -04:00
l_rollback.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_server.cpp Drop wide/narrow conversion functions 2021-02-02 20:46:08 +01:00
l_server.h Revise dynamic_add_media API to better accomodate future changes 2021-02-01 23:00:13 +01:00
l_settings.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_settings.h Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) (#9284) 2020-01-25 16:56:54 +01:00
l_sound.cpp Modernize lua read (part 2 & 3): C++ templating assurance (#7410) 2018-06-30 17:11:38 +02:00
l_sound.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
l_storage.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_storage.h Fix memory leaks in mod storage (#7500) 2018-06-30 17:11:04 +02:00
l_util.cpp Add a simple PNG image encoder with Lua API (#11485) 2021-07-29 05:10:10 +02:00
l_util.h Add a simple PNG image encoder with Lua API (#11485) 2021-07-29 05:10:10 +02:00
l_vmanip.cpp script: Replace calls to depreated luaL_openlib 2021-05-30 11:40:14 +02:00
l_vmanip.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00