thindil / steamsky

Mirror of a roguelike in sky with a steampunk setting
https://www.laeran.pl.eu.org/repositories/steamsky
94 stars 7 forks source link

Numpad Keys Dysfunctional #84

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the bug Despite the keybindings being set, the ship does not move upon pressing any numpad key. I have confirmed my ship was undocked, and also have endeavored to move both with and without numlock. Only the screen is slightly nudged (and does not further nudge during continued pressing). This issue extends to numpad map movement, as well.

Technical Info:

thindil commented 3 years ago

Hello, thank you for the report. I have just one question: if you use the default keyboard settings, do you have enabled keypad with NumLock key? Unfortunately, the keypad works different when is enabled or disabled. I will try to add to the development version something what allows keys to work the same in both states.

ghost commented 3 years ago

Hello, thank you for the report. I have just one question: if you use the default keyboard settings, do you have enabled keypad with NumLock key? Unfortunately, the keypad works different when is enabled or disabled. I will try to add to the development version something what allows keys to work the same in both states.

As I declared, I endeavored both with and without numlock. There is a single response in the map, but my ship does not move. I indeed utilize the default settings.

thindil commented 3 years ago

I'm blind, I'm sorry, now I understand. Hmm, I will look at it. Then another question, is the setting own keys in the game options working properly or numpad keys there also not work?

ghost commented 3 years ago

I'm blind, I'm sorry, now I understand. Hmm, I will look at it. Then another question, is the setting own keys in the game options working properly or numpad keys there also not work?

Replacing with my own keys indeed functions. However, when I rebind to numpad, the original KP_# does not return. It becomes 'Home,' 'Left,' etc. or its corresponding number, if numpad is active.

thindil commented 3 years ago

I see, thank you for checking. Fortunately I can reproduce it. I hope I can fix it in this week, so it will be shipped with the new release.

thindil commented 3 years ago

This one should be fixed too. The problem is that the graphic library used by the game threat differently the keys on various systems. For example, divide key on the keypad on Linux is KP_Divide and on Windows it is slash. The fix will work only with the new installation of the game, I think we don't want to mess with keys which were set by the players. 😄

Again, thank you very much for the report. The new, more stable version of the game will be available to download on this Sunday.