Lars Müller
f4285a59ac
Purge some dead code (mostly Irrlicht) ( #16111 )
...
* Remove obsolete Irrlicht attributes system
* Remove dead GUI element types
* Remove some obsolete Irrlicht headers
* Fix some oopsies from d96f5e1
2025-05-04 16:31:44 +02:00
Muhammad Rifqi Priyo Susanto
3e5d9782cc
Android: Persistent notification while ingame ( #13125 )
...
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: grorp <grorp@posteo.de>
2025-04-24 07:38:52 -04:00
sfan5
900cf896db
Move NodeShaderConstantSetter to game.cpp
2025-04-21 12:32:29 +02:00
sfan5
b2c2a6ff47
Rename IShaderConstantSetter
2025-04-21 12:32:29 +02:00
Vincent Robinson
fd85737460
Add allow_close[]
element to formspecs ( #15971 )
2025-04-16 16:20:39 -07:00
cx384
52b974184d
Move client code out of ItemDefManager ( #15967 )
2025-04-04 18:58:14 +02:00
Elias Åström
1db5a2f950
Add delay between punching and digging node ( #15931 )
2025-04-04 18:46:27 +02:00
grorp
c30c94dfaa
Add server/client annotations to settingtypes.txt and make use of them ( #15756 )
2025-04-01 07:55:47 -04:00
y5nw
4cd2273349
Refactor input handler ( #15933 )
2025-03-30 18:16:20 +02:00
grorp
b0bc6ce637
TouchControls: Take FOV into account for camera movement ( #15936 )
2025-03-28 07:43:59 -04:00
SmallJoker
5b2b2c7796
Game: disable 'toggle_sneak_key' while flying
2025-03-19 18:42:26 +01:00
cx384
e0378737b7
Fix overrideable hand ToolCapabilities and range ( #15743 )
2025-03-16 20:03:31 +01:00
Deve
c07499ccfc
Reload font manager in main thread to avoid a crash ( #15900 )
2025-03-16 17:55:39 +01:00
lhofhansl
017318f117
Avoid touching all blocks in range every 0.2s ( #15878 )
...
Instead touch these blocks every 4s.
2025-03-08 12:42:50 -08:00
Medley
63701de45f
Make Sneak
and Aux1
optionally togglable ( #15785 )
2025-03-06 21:01:43 +01:00
sfan5
7892541383
Various random code cleanups
2025-03-04 19:53:01 +01:00
sfan5
68602b2eaf
Fix shadow flicker on camera offset update (take 2)
...
The previous fix never did what it was supposed to, so let's do this.
2025-03-04 19:53:01 +01:00
sfan5
7602308835
Revert "Restrict relative mouse mode to Wayland users ( #15697 )"
...
see #15761
SDL is the only device that supports relative mode and
mouse input is actually somewhat broken if it's *not* enabled.
This reverts commit 45c5ef8798
and 88b007907a
.
2025-03-04 19:53:01 +01:00
Lars Mueller
d74af2f1a7
Use matrix4::getRotationRadians
2025-02-27 12:31:04 +01:00
sfan5
42a35cec83
Allow looking straight up or down
2025-02-26 12:21:57 +01:00
grorp
5e89371ecd
TouchControls: touch_use_crosshair, dig/place simulation refactoring ( #15800 )
...
- get rid of simulated mouse events for digging/placing, use keyboard events
instead
- consistent with other simulated events, less code, no need for a
pointer position
- more correct: touch controls no longer break if you have custom
dig/place keybindings set
- move reading of "touch_use_crosshair" setting from Game to TouchControls
2025-02-25 13:19:44 -05:00
sfan5
ba62808fe8
Basic camera control API ( #15796 )
2025-02-19 18:45:45 +01:00
Desour
138111a542
Don't use fps_max_unfocused for server step time on non-singleplayer main-menu-hosted servers
...
It's unreasonable to change server step time when the hosting user unfocuses their window.
(m_is_paused is already not set if it's not singleplayer.)
2025-02-15 18:21:01 +01:00
Desour
191cb117f9
Don't use fps_max_unfocused for the pause menu
...
Nowadays, we have things like buttons that change appearance on hover, or scoll bars
in the pause menu. These do not work fine with low fps.
2025-02-15 18:21:01 +01:00
sfan5
88b007907a
Enable relative mouse mode on Android ( #15750 )
...
fixes #15727
2025-02-04 12:19:09 +01:00
sfan5
45c5ef8798
Restrict relative mouse mode to Wayland users ( #15697 )
2025-01-26 19:16:46 +01:00
sfan5
b861f0c5c5
Fix shadow flicker on camera offset update ( #15709 )
2025-01-25 10:47:52 +01:00
grorp
41dfac96c1
Add setting callbacks for Camera and TouchControls ( #15700 )
2025-01-24 16:50:51 +01:00
SFENCE
af3f696423
Code style fixes.
2025-01-21 16:29:12 +01:00
grorp
eeb6cab4c4
In-game settings menu using separate Lua environment ( #15614 )
2025-01-19 13:07:04 -05:00
sfan5
a262be6a47
Move camera offset to consistent point in game loop
...
fixes #10027
2025-01-19 18:39:32 +01:00
sfan5
e5f276ecee
Apply some minor code cleanups
2025-01-19 18:39:32 +01:00
chmodsayshello
d4a6df3389
Add chat console scrollbar ( #15104 )
2025-01-12 14:49:01 +01:00
sfan5
e5542e5b02
Remove or restrict some client settings ( #15633 )
2025-01-08 10:56:45 +01:00
DS
431c5c8b36
Fix wireframe mode in opengl3 driver ( #15626 )
...
`GL_LINES` isn't suitable, because it makes lines between pairs of 2 vertices,
not loops around 3 vertices.
Support for OpenGL ES isn't simple, as it has no `glPolygonMode`. And showing broken
wireframe (i.e. with `GL_LINES`) would cause confusion.
2025-01-06 19:39:17 +01:00
DS
4c4918b154
Fix show_debug setting causing inconsistency between debug control and shown debug info
2025-01-05 13:20:21 +01:00
sfan5
4e2ca05f08
Add debug mode that shows mesh buffer bounding boxes
2025-01-04 12:40:14 +01:00
sfan5
d884a1624f
Show active HW buffers in profiler
2024-12-31 14:47:46 +01:00
sfan5
f2b1cc3e61
Fix situation around aabbox3d default constructor ( #15586 )
...
Co-authored-by: JosiahWI <41302989+JosiahWI@users.noreply.github.com>
2024-12-29 14:36:30 +01:00
cx384
83bc27d99d
Move formspec code from game.cpp to separate file
2024-12-21 18:43:05 +01:00
cx384
b172e67295
Remove game_ui from Client class
2024-12-20 15:03:45 +01:00
grorp
6a1d22b2c5
Implement an editor to customize the touchscreen controls ( #14933 )
...
- The editor is accessible via the pause menu and the settings menu.
- Buttons can be moved via drag & drop.
- Buttons can be added/removed. The grid menu added by #14918 is used to show
all buttons not included in the layout.
- Custom layouts are responsive and adapt to changed screen size / DPI /
hud_scaling.
- The layout is saved as JSON in the "touch_layout" setting.
2024-11-24 11:33:39 +01:00
wrrrzr
1c92d6243f
MainMenuManager: fix FIXME ( #15414 )
2024-11-12 10:52:37 +01:00
sfence
d849d51c2d
Replace licensing text in headers (LGPLv2.1) ( #15321 )
2024-10-28 15:57:39 +01:00
DS
e5d321d286
Cleanup headers in irr/include/ ( #15181 )
2024-10-18 10:58:32 +02:00
SmallJoker
e3813cf027
Settings: semi-automatic callback cleanup
2024-10-17 19:38:49 +02:00
grorp
9f43018df2
Better UX when touch events aren't supported by Irrlicht device ( #15288 )
2024-10-16 21:37:00 +02:00
paradust7
2188adc0f9
Ensure that null C strings do not break logging ( #15255 )
2024-10-12 22:34:24 +02:00
grorp
f5076723e8
Android: Fix camera jump when switching to mouse mode
...
Easy way to reproduce:
1. Connect a bluetooth mouse to your Android phone with Minetest installed
2. Play Minetest
3. Slowly move the mouse to the right so that the camera rotates continously
4. While still moving the mouse continously, tap the screen a few times per second
Before this commit: The camera jumps around randomly.
After this commit: The camera moves like it should.
This is a combination of two Irrlicht changes copied from MoNTE48/irrlicht
and one Minetest change authored by me. I have no idea why this works, but
it does work and I have spent way too much time on this bug already.
2024-10-09 18:26:19 +02:00
grorp
4952f17df4
Auto-toggle TouchControls in-game when receiving touch/mouse input
2024-10-09 18:26:19 +02:00