Giter Site home page Giter Site logo

Comments (12)

softcoder avatar softcoder commented on August 23, 2024

What screen is this defect referring to?

from megaglest-source.

filux avatar filux commented on August 23, 2024

Both. First screen ("g" with hat) is in game chat after single RAlt+e (enabled some modifier mode and waits for next letter). Second screen shows in game key test for RAlt+e.
In both cases expected is "ę" character.

from megaglest-source.

softcoder avatar softcoder commented on August 23, 2024

Which page in the game are you typing this.

from megaglest-source.

filux avatar filux commented on August 23, 2024

1-st screen. New Game > Custom Game > Play now > Enter > RAlt+e (in the chat, single use RAlt+e)
2-nd screen. Options > Keyboard setup > RAlt+e (in the key test box)

from megaglest-source.

titiger avatar titiger commented on August 23, 2024

I have similar issues with the Euro ( € ) character. I cannot input it in irc chat in the lobby for example.
This works in sdl1.2 MG

from megaglest-source.

filux avatar filux commented on August 23, 2024

a bit unrelated but also ctrl+L - hidden language menu doesn't work (fixed since 6d0592d)

from megaglest-source.

filux avatar filux commented on August 23, 2024

since 6d0592d RAlt+e works different but still wrong (single use RAlt+e), because produces "e" and "g with hat" at once
wrongletter

from megaglest-source.

filux avatar filux commented on August 23, 2024

today I got idea about check/compare codes in key test, because maybe this may be somehow helpful, so now (sdl2) I see:

  • for "e" : 101,101,0
  • for "RAlt": 1073742054,1073742054,512
  • for "RAlt+e": -60,-60,512

... and for old values (sdl1 / 3.11.1) I see:

  • for "e" : 101,101,101,0
  • for "RAlt": 313,313,0,16384
  • for "RAlt+e": 101,281,281,16384

... so 3 values vs 4 values and for sure this long sdl2 numbers for "RAlt" look strange

from megaglest-source.

titiger avatar titiger commented on August 23, 2024

Suggestion: currently we use key events like MainMenu::keyPress and so on.
Thats ok for normal button pressed events in the game and so on. For real textinput ( active text input label ) its maybe better to use a new SDL2 way and use SDL_TextInputEvent directly in the places where text input is needed.

from megaglest-source.

filux avatar filux commented on August 23, 2024

on 76d41df in game I don't see any difference:
wrongletter3

... on the "headless configuration screen" is the same situation:
wrongletter2

... but in the lobby I see something different (first time I tested here, didn't expected differencess):
wrongletter1
so in the lobby is very close (e + proper and expected: "ę") and second RAlt+e produces again "eę" so somehow modifier "g with hat" is not present here.
... but if I do "Ralt+e" and then "Backspace" (removing character before cursor) then I got same effect like in game:

wrongletter3

... so for removing "ę" in the lobby I have to use "Backspace" twice :|.

from megaglest-source.

filux avatar filux commented on August 23, 2024

on 964c776 in game still old behavior ^.
... in the lobby "ę" works but backspace doesn't work at all, so you can't remove characters.

from megaglest-source.

filux avatar filux commented on August 23, 2024

on 81346ba all looks to be fixed :)

from megaglest-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.