Minetest logo

IRC log for #minetest-dev, 2024-12-26

| Channels | #minetest-dev index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:05 Eragon joined #minetest-dev
00:23 SFENCE joined #minetest-dev
00:57 SFENCE joined #minetest-dev
01:17 hwpplayer1 joined #minetest-dev
02:09 hwpplayer1 joined #minetest-dev
02:31 SFENCE joined #minetest-dev
02:50 SFENCE joined #minetest-dev
03:08 hwpplayer1 joined #minetest-dev
03:53 hwpplayer1 joined #minetest-dev
05:00 MTDiscord joined #minetest-dev
07:28 hwpplayer1 joined #minetest-dev
07:52 SFENCE joined #minetest-dev
08:40 hwpplayer1 joined #minetest-dev
08:41 SFENCE joined #minetest-dev
09:53 SFENCE joined #minetest-dev
10:17 YuGiOhJCJ joined #minetest-dev
11:09 SFENCE joined #minetest-dev
11:51 Farooq joined #minetest-dev
11:51 Farooq joined #minetest-dev
11:58 Farooq joined #minetest-dev
12:27 SFENCE joined #minetest-dev
13:45 SFENCE joined #minetest-dev
15:19 SFENCE joined #minetest-dev
15:29 SFENCE joined #minetest-dev
16:45 SFENCE joined #minetest-dev
18:04 SFENCE joined #minetest-dev
19:02 Krock hmm. To solve the SDL input issue we could in fact use event.text.text which is fired as SDL_TEXTINPUT right after SDL_KEYDOWN
19:03 Krock SEvent::SKeyInput::Char would then be filled with that character (if possible) and dispatched in SDL_TEXTINPUT (one event later)
19:05 Krock for PressedDown=false we could track the pressed scancodes in CIrrDeviceSDL
19:05 Krock Is this idea stupid?
19:06 [MatrxMT] <grorp> we've already discussed this workaround a few times. the reason it doesn't work is: the sdl textinput event is only fired if sdl text input was started before. this will enable ime, which you definitely don't want in-game.
19:19 [MatrxMT] <y5nw> Also: for (particularly) some Asian-language IMEs there is basically no guarantee of keypress events firing at all.
19:40 SFENCE joined #minetest-dev
19:42 Krock ah I see. Thanks IME, I guess.
19:53 jonadab IMEs can be very important for the kinds of applications where you need to enter actual text, especially if you ever need to enter text in a writing system other than the Latin alphabet.  But yeah, they are completely inappropriate for other types of keyboard-control UIs.
19:59 [MatrxMT] <y5nw> Aside from IMEs, using text input events would complicate key comparisons further. The current KeyPress::operator== checks whether the EKEY_CODE or the key character match (one is enough); this would no longer work since 7 and Shift-7 (let's say it's "/") would need to be considered different keys even if they get the same keycode, while A and Shift-A (moving forward while sneaking) would likely need to be considered the same even with
20:02 celeron55 i think it's simply a bad premise to attempt to use keys that require key combinations in some languages as mapped keys, or even keys that map to multiple possible keys. but doing so was the default for a long time so it has to be unlearned by users
20:05 [MatrxMT] <y5nw> One thing we could do would be to followup the scancode PR with a PR that allows modifier keys; the latter would be a bit weird (since e.g. Shift-7 would be a combination of scancodes and keycodes) but it would allows players to continue using Shift-7 if they wish.
20:08 hwpplayer1 joined #minetest-dev
20:09 [MatrxMT] <y5nw> That said, with #14964 we will still end up (one way or another) requiring requiring some users to rebind their keys regardless of what we choose as the default. Scancode-based defaults basically break keyboard layouts where a key is located in a different position than its US counterpart, while keycode-based configurations would break on layouts where a key is not present in the unshifted position.
20:09 ShadowBot https://github.com/minetest/minetest/issues/14964 -- SDL: Use scancodes for keybindings by y5nw
20:18 celeron55 i agree supporting modifiers would probably make enough people happy
20:27 [MatrxMT] <y5nw> I also have a PR for keybindings with modifiers (#14874) but it needs to be reworked to handle scancodes.
20:27 ShadowBot https://github.com/minetest/minetest/issues/14874 -- Allow keybindings with modifiers by y5nw
20:47 hwpplayer1 joined #minetest-dev
22:16 LandarVargan joined #minetest-dev
22:38 SFENCE joined #minetest-dev
23:34 panwolfram joined #minetest-dev
23:56 SFENCE joined #minetest-dev

| Channels | #minetest-dev index | Today | | Google Search | Plaintext