Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: GUI Tweak:  (Read 758 times)

ToXey

  • Bay Watcher
    • View Profile
GUI Tweak:
« on: November 16, 2014, 06:12:58 am »

Hi! I have this bug:
http://www.bay12games.com/dwarves/mantisbt/view.php?id=6088
So I thought that it would be nice to be able to just quickly change "which key is the alt-key".
I would change my ALT key to be ALT GR instead. Which is currently Mode, whereas the key next to it is Menu, and both are recognized in Ubuntu (I can add bindings to those keys, but not to the ALT key, only ALT GR and MENU)

*addition* And then you can have one screen for "Basic Keys" which is the keys that subsequently will be used in the following setup. The keys like ALT GR and MENU could just be added to the list of keys that let you shift into another mode. That would be useful, rather than fixing the ALT key for Ubuntu 14 (because I believe it is just a question of changing how Ubuntu handles the ALT key when you press it).
« Last Edit: November 16, 2014, 06:15:40 am by ToXey »
Logged
-I slew Zolak! -It was inevitable.
-Any troubles? -Bandit Zolak is harassing our hamlet!
-Tell me about Zolak. -Zolak is dead.
-What do you think about me? -You are killer. You are also unhinged. You have perpetrated a violent attack upon Zolak.

ToXey

  • Bay Watcher
    • View Profile
Re: GUI Tweak:
« Reply #1 on: November 17, 2014, 06:41:06 am »

I found out that the encoding for keypresses in DF is based on a sum of 1, 2 and/or 4. The amount of different keypresses would be 8, such as CTRL + ALT + SHIFT being one of them. I think it might be low on the list to change the system for key bindings. Is there a way to change which keyboard location is the ALT key?
Logged
-I slew Zolak! -It was inevitable.
-Any troubles? -Bandit Zolak is harassing our hamlet!
-Tell me about Zolak. -Zolak is dead.
-What do you think about me? -You are killer. You are also unhinged. You have perpetrated a violent attack upon Zolak.

lethosor

  • Bay Watcher
    • View Profile
Re: GUI Tweak:
« Reply #2 on: November 17, 2014, 04:55:43 pm »

I haven't had problems with "Alt" on Ubuntu. The majority of modifier handling is done by SDL, not DF, so it's most likely a problem with SDL or your system's keyboard layout.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

ToXey

  • Bay Watcher
    • View Profile
Re: GUI Tweak:
« Reply #3 on: November 18, 2014, 01:40:37 am »

Thanks for the reply, I will look into changing the KB layout.
Logged
-I slew Zolak! -It was inevitable.
-Any troubles? -Bandit Zolak is harassing our hamlet!
-Tell me about Zolak. -Zolak is dead.
-What do you think about me? -You are killer. You are also unhinged. You have perpetrated a violent attack upon Zolak.

ToXey

  • Bay Watcher
    • View Profile
Re: GUI Tweak:
« Reply #4 on: November 18, 2014, 06:13:01 am »

Changing the hot keys did not work, I will have to install a program for changing the KB layout. Some programs open up the top bar menu when you press alt, so I guess I could try disabling that.
*addition* I found this http://askubuntu.com/questions/122209/how-do-i-modify-or-disable-the-huds-use-of-the-alt-key
« Last Edit: November 18, 2014, 06:30:39 am by ToXey »
Logged
-I slew Zolak! -It was inevitable.
-Any troubles? -Bandit Zolak is harassing our hamlet!
-Tell me about Zolak. -Zolak is dead.
-What do you think about me? -You are killer. You are also unhinged. You have perpetrated a violent attack upon Zolak.

ToXey

  • Bay Watcher
    • View Profile
Re: GUI Tweak:
« Reply #5 on: November 18, 2014, 06:36:34 am »

I tried using keyboard input programs to use alt combinations but they just default to non-alt presses as per http://www.bay12games.com/dwarves/mantisbt/view.php?id=6088 since not even the virtual keyboard is recognized.
Logged
-I slew Zolak! -It was inevitable.
-Any troubles? -Bandit Zolak is harassing our hamlet!
-Tell me about Zolak. -Zolak is dead.
-What do you think about me? -You are killer. You are also unhinged. You have perpetrated a violent attack upon Zolak.

ToXey

  • Bay Watcher
    • View Profile
Re: GUI Tweak:
« Reply #6 on: November 18, 2014, 06:59:17 am »

Ubuntu automatically starts some kind of weird "alt enters the menu" kind of feature. I think that i I change the window manager it will work better. I just have to figure out how. *edit* it worked, I installed XUbuntu and alt works fine.
« Last Edit: November 18, 2014, 12:51:25 pm by ToXey »
Logged
-I slew Zolak! -It was inevitable.
-Any troubles? -Bandit Zolak is harassing our hamlet!
-Tell me about Zolak. -Zolak is dead.
-What do you think about me? -You are killer. You are also unhinged. You have perpetrated a violent attack upon Zolak.