# Keyboard shortcuts?

**URL:** <https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718>\
**Category:** Development/Design\
**Created:** [June 7, 2017, 2:33pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718 "2017-06-07T14:33:40Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![kaiman](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kaiman](https://forums.thimbleweedpark.com/u/kaiman)\
**Post date:** [June 9, 2017, 10:42pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/61 "2017-06-09T22:42:11Z")

</div>

> [@Someone](#):
>
> No, you can use SDL\_TEXTINPUT events without SDL\_StartTextInput.

Odd, as I never got that working either.

Looking at the source, it’s clear that SDL\_TEXTINPUT events are disabled by default

> <https://github.com/libsdl-org/SDL/blob/325330efdb4e1c0c1b790ec0af6f443b87753eab/src/events/SDL_events.c>

Of course, that means they can be enabled by

> SDL\_EventState(SDL\_TEXTINPUT, SDL\_ENABLE);

which is what SDL\_StartTextInput is doing, amongst other things. So perhaps that’s all there is to it.

Incidentally, if you run any of the SDL test programs, such as testdraw2 with

> ./testdraw2 --info event --log input

and start typing, it will merrily log SDL\_TEXTINPUT events with the expected unicode of combined key presses, such as ALT+Q to get @ on my keyboard.

> INFO: SDL EVENT: Keyboard: key pressed in window 2: scancode 0x000000E6 = Right Alt, keycode 0x400000E6 = Right Alt  
> INFO: SDL EVENT: Keyboard: key pressed in window 2: scancode 0x00000014 = Q, keycode 0x00000071 = Q  
> **INFO: SDL EVENT: Keyboard: text input “@” in window 2**  
> INFO: SDL EVENT: Keyboard: key released in window 2: scancode 0x00000014 = Q, keycode 0x00000071 = Q  
> INFO: SDL EVENT: Keyboard: key released in window 2: scancode 0x000000E6 = Right Alt, keycode 0x400000E6 = Right Alt

Looking further, it seems that SDL\_StartTextInput is called during SDL\_VideoInit on platforms that do not show onscreen keyboards by default:

> <https://github.com/libsdl-org/SDL/blob/325330efdb4e1c0c1b790ec0af6f443b87753eab/src/video/SDL_video.c>

Which would explain why it works in the test program (but not why it never worked for me 🙂)

---

<div class="post-metadata">

**Author:** ![Someone](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Someone](https://forums.thimbleweedpark.com/u/Someone)\
**Post date:** [June 9, 2017, 10:51pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/62 "2017-06-09T22:51:57Z")

</div>

> [@kaiman](#):
>
> Looking further, it seems that SDL\_StartTextInput is called during SDL\_VideoInit on platforms that do not show onscreen keyboards by default:

Ah, interesting. On my system SDL\_TEXTINPUT worked out of the box – maybe because I used SDL\_VideoInit(). 🙂

> [@kaiman](#):
>
> Which would explain why it works in the test program (but not why it never worked for me 🙂)

But it’s working if you enable it explicitly with SDL\_StartTextInput()?

---

<div class="post-metadata">

**Author:** ![kaiman](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kaiman](https://forums.thimbleweedpark.com/u/kaiman)\
**Post date:** [June 9, 2017, 10:58pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/63 "2017-06-09T22:58:48Z")

</div>

> [@Someone](#):
>
> But it’s working if you enable it explicitly with SDL\_StartTextInput()?

It does. But mind you, the program in question was ported from SDL1.2 to SDL2 in a sloppy way, so it may have not worked initially for any number of reasons. I’d have to actually go in and put a check for the result of SDL\_IsTextInputActive right near the start. From all I know now, it should return true.

---

<div class="post-metadata">

**Author:** ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://forums.thimbleweedpark.com/u/Marc)\
**Post date:** [June 10, 2017, 4:47pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/64 "2017-06-10T16:47:21Z")

</div>

Ctrl-Alt-X to skip those hard ‘verify your age’ questions!

---

<div class="post-metadata">

**Author:** ![milanfahrnholz](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@milanfahrnholz](https://forums.thimbleweedpark.com/u/milanfahrnholz)\
**Post date:** [June 10, 2017, 4:55pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/65 "2017-06-10T16:55:15Z")

</div>

> [@Marc](#):
>
> Ctrl-Alt-X to skip those hard ‘verify your age’ questions!

In Larry? Those are the worst, not only because they are very culture specific (ie only for americans) but also because they are terribly outdated! More like verify your generation and cultural backround! Let alone discriminatory towards supercenterians!

---

<div class="post-metadata">

**Author:** ![Burning\_Death](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/burning_death/32/337_2.png) [@Burning\_Death](https://forums.thimbleweedpark.com/u/Burning_Death)\
**Post date:** [June 11, 2017, 12:08pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/66 "2017-06-11T12:08:32Z")

</div>

What about a QWERTY or QWERTZ keyboard option, so the actual ‘give’ shortcut is located next to the X and C keys as intended on a QWERTZ keyboard (instead of the Z key next to T and U).

> [@asterothe](#):
>
> CTRL + M → opens map after the map is available  
> I second character selections with keys.

Character selection is possible with the 1-5 keys above the letter keys.

CTRL + M or just the M, Enter or Space key (with a quick hint for it after starting chapter 3) to open the map would be really nice, it’s like the telephone… if you decide to use the quick ‘map zip’ frequently, a shortcut for it comes very handy.

An additional future feature could be an external floor map for the hotel (by using a shortcut key with a hint given in or after Franklins flashback “you can now use the H key…”), because waiting time for and in the elevator becomes tedious after numerous times. Some may wonder how much time you wait for the elevator in your normal playthrough.  
You can still decide to use the elevator like normal or just zip to each floor like you can do with the normal map.

> [@LogicDeLuxe](#):
>
> There is one thing Day of the Tentacle handles slightly more comfortable:  
> If you left click on an item in the inventory, “use” is selected automatically. If you right click, you “look at” it. That way, both mouse buttons have useful default verbs in the inventory.
> 
> And some cosmetic detail in Day of the Tentacle and most later LucasArts adventures: When use is selected on an item which needs to be combined, the mouse cursor turns into the item’s icon.
> 
> Both were nice tweaks, imho.

I second this, too.

---

<div class="post-metadata">

**Author:** ![Someone](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Someone](https://forums.thimbleweedpark.com/u/Someone)\
**Post date:** [June 11, 2017, 2:16pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/67 "2017-06-11T14:16:03Z")

</div>

> [@Burning\_Death](#):
>
> What about a QWERTY or QWERTZ keyboard option

There are (too) many other keyboard layouts out there. For example AZERTY: [AZERTY - Wikipedia](https://en.wikipedia.org/wiki/AZERTY)

You would have to support all of these layouts and that’s too much work.

> [@Burning\_Death](#):
>
> because waiting time for and in the elevator becomes tedious after numerous times. Some may wonder how much time you wait for the elevator in your normal playthrough.

I agree with you. But I fear that your suggestion of a map would cause a lot of additional work for the developers.

---

<div class="post-metadata">

**Author:** ![Nor\_Treblig](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/nor_treblig/32/216_2.png) [@Nor\_Treblig](https://forums.thimbleweedpark.com/u/Nor_Treblig)\
**Post date:** [June 12, 2017, 1:06am UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/68 "2017-06-12T01:06:10Z")

</div>

> [@Burning\_Death](#):
>
> Some may wonder how much time you wait for the elevator in your normal playthrough.

I didn’t had the impression it was that a lot. It mainly stands out when you want to get multiple characters somewhere, e.g. into the penthouse which was the one floor with the longest travel time.

Maybe it’s because of my daily usage of elevator technology that I’m used to wait for them 🙂

> [@Someone](#):
>
> There are (too) many other keyboard layouts out there.

Those three mentioned were the ones I knew. There is a list of QWERTY-based ones on [Wikipedia](https://en.wikipedia.org/wiki/Keyboard_layout#QWERTY-based_layouts_for_Latin_script). It’s actually not that many as it seems.

The good thing is that on desktop systems you can always change those bindings yourself, but still the default should make sense for most normal users. And non-desktop systems don’t have keyboards by default.

Hm, I wonder if TWP works with the XBox keyboards too like this one:  
 ![](https://canada1.discourse-cdn.com/flex030/uploads/thimbleweedpark/original/1X/bba500407b8280ad68e974d7e0c3fbe917775902.jpg)

---

<div class="post-metadata">

**Author:** ![milanfahrnholz](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@milanfahrnholz](https://forums.thimbleweedpark.com/u/milanfahrnholz)\
**Post date:** [June 12, 2017, 1:31am UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/69 "2017-06-12T01:31:39Z")

</div>

> [@Nor\_Treblig](#):
>
> to like this one

My reaction when looking at this thing:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=b1wzQNzttSk)

---

<div class="post-metadata">

**Author:** ![Nor\_Treblig](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/nor_treblig/32/216_2.png) [@Nor\_Treblig](https://forums.thimbleweedpark.com/u/Nor_Treblig)\
**Post date:** [June 12, 2017, 1:41am UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/70 "2017-06-12T01:41:49Z")

</div>

At least it allows quick selection of every verb! Without blowing up.

---

<div class="post-metadata">

**Author:** ![milanfahrnholz](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@milanfahrnholz](https://forums.thimbleweedpark.com/u/milanfahrnholz)\
**Post date:** [June 12, 2017, 1:50am UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/71 "2017-06-12T01:50:40Z")

</div>

No thanks, I still have enough issues typing using the keyboard on my phone. So this is a real thing and not a mockup then?

_Edit:_ I´ve just checked and saw there is even things like that for playstation. I mean I get why they exist but…no, just no!

---

<div class="post-metadata">

**Author:** ![Nor\_Treblig](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/nor_treblig/32/216_2.png) [@Nor\_Treblig](https://forums.thimbleweedpark.com/u/Nor_Treblig)\
**Post date:** [June 12, 2017, 3:32am UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/72 "2017-06-12T03:32:51Z")

</div>

> [@milanfahrnholz](#):
>
> I mean I get why they exist

They were created so we can play Maniac Mansion on XBox efficiently!

---

<div class="post-metadata">

**Author:** ![LowLevel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/lowlevel/32/48_2.png) [@LowLevel](https://forums.thimbleweedpark.com/u/LowLevel)\
**Post date:** [June 12, 2017, 4:02am UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/73 "2017-06-12T04:02:50Z")

</div>

What an abomination. Ugliest thing on the planet. 😬

---

<div class="post-metadata">

**Author:** ![Someone](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Someone](https://forums.thimbleweedpark.com/u/Someone)\
**Post date:** [June 12, 2017, 8:33am UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/74 "2017-06-12T08:33:26Z")

</div>

> [@Nor\_Treblig](#):
>
> Those three mentioned were the ones I knew. There is a list of QWERTY-based ones on Wikipedia. It’s actually not that many as it seems.

Don’t forget the corresponding Apple keyboards. They use the QWERTY layouts but change some keys. For example the @ is on a german Apple keyboard not on Q but on the L.

Then there are different “sub layouts”. For example you can choose between a “dead key” and a “non dead key” variant. Everyone who ever installed Linux knows the loooong list of possible keyboard layouts (here a german example):

 ![](https://canada1.discourse-cdn.com/flex030/uploads/thimbleweedpark/original/1X/b7fa84f8d366284e3b517504932513746311872b.png)

> [@Nor\_Treblig](#):
>
> The good thing is that on desktop systems you can always change those bindings yourself, but still the default should make sense for most normal users. And non-desktop systems don’t have keyboards by default.

Most games just simply use the latin keys (a,b,c,1,2,3…) with an english layout, but allowing the player to re-map the keys in the options.

---

<div class="post-metadata">

**Author:** ![Nor\_Treblig](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/nor_treblig/32/216_2.png) [@Nor\_Treblig](https://forums.thimbleweedpark.com/u/Nor_Treblig)\
**Post date:** [June 12, 2017, 1:22pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/75 "2017-06-12T13:22:50Z")

</div>

> [@Someone](#):
>
> Most games just simply use the latin keys (a,b,c,1,2,3…)

Which would be sufficient for TWP too, it’s mostly about the verb mappings to make sense.

---

<div class="post-metadata">

**Author:** ![Someone](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Someone](https://forums.thimbleweedpark.com/u/Someone)\
**Post date:** [June 12, 2017, 2:25pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/76 "2017-06-12T14:25:43Z")

</div>

> [@Nor\_Treblig](#):
>
> Which would be sufficient for TWP too, it’s mostly about the verb mappings to make sense.

Yes, but Ron said already that he needs the “@” or at least shift-a:

> [@Keyboard shortcuts?](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/47):
>
> None of these do what I need. I can’t be converting to strings and then doing string comparisons just to check keys. That is frame rate-killing. What I need is: If you press “2” you get “2”, if you press “shift-2” you get “@” (on US keyboards, or what ever is above the 2 on other keyboards). Or “a” returns “a” and “shift-a” returns “A”. I’m surprised SDL doesn’t have a function or event for this. It’s so obvious, it makes me wonder if I’m just missing it.

And allowing the player to re-map the keys needs additional work.

---

<div class="post-metadata">

**Author:** ![Nor\_Treblig](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/nor_treblig/32/216_2.png) [@Nor\_Treblig](https://forums.thimbleweedpark.com/u/Nor_Treblig)\
**Post date:** [June 12, 2017, 3:30pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/77 "2017-06-12T15:30:07Z")

</div>

> [@Someone](#):
>
> Yes, but Ron said already that he needs the “@” or at least shift-a

I’m not sure why he actually needs this. Maybe it was because of the numpad thing, e.g. mapping “1” independently from which actual key it comes from.  
But verbs are (currently) mapped by key location, not the actual letter, and numeric keys are normally at the same position (above the letters + numpad).  
In a game you want those mappings to work no matter if shift or capslock are active.

> [@Someone](#):
>
> And allowing the player to re-map the keys needs additional work.

Do you mean via UI? I don’t think this will ever be added.

---

<div class="post-metadata">

**Author:** ![RonGilbert](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/rongilbert/32/7_2.png) [@RonGilbert](https://forums.thimbleweedpark.com/u/RonGilbert)\
**Post date:** [June 12, 2017, 3:37pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/78 "2017-06-12T15:37:02Z")

</div>

> [@Someone](#):
>
> Yes, but Ron said already that he needs the “@” or at least shift-a:

It was just an example about the complexities of key mapping. I don’t need to @.

---

<div class="post-metadata">

**Author:** ![Sushi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/sushi/32/163_2.png) [@Sushi](https://forums.thimbleweedpark.com/u/Sushi)\
**Post date:** [June 12, 2017, 8:11pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/79 "2017-06-12T20:11:58Z")

</div>

> [@RonGilbert](#):
>
> it’s a little confusing due to how the phone and keyboard keypads are flipped. I’m not sure I’m going to leave it in.

Leave it in, please! People enter their phone numbers using the numpad all the time without thinking twice that it is actually upside down. If you were to enter a pin code, then muscle memory would get in the way, yes. Perhaps that was one of the reasons to invert it? That and because pocket calculators.

---

<div class="post-metadata">

**Author:** ![Sushi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/sushi/32/163_2.png) [@Sushi](https://forums.thimbleweedpark.com/u/Sushi)\
**Post date:** [June 12, 2017, 8:42pm UTC](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718/80 "2017-06-12T20:42:08Z")

</div>

A shortkey to use the phone could come in handy if you want to check out a lot of phone messages.

double-clicking a destination on the county map and then clicking the return button could put the actor at the destination, rather than at the start. I had this a few times when walking between the mansion and the bridge, which still is a long walk

Probably too complex to implement, but a follow-me option would be nice. I spend a lot of time walking everyone one by one to the audience of the Ransome look-alike contest hoping to trigger some responses or new dialogue options, but they all just left.

An index of the library sections. Now they are only numbered on mouse over, while they had some named categories at the time of the blog. Perhaps LOOK AT the tron machine could show a closeup with all categories next to each section number? It would allow for a more real-life and alternate solution to locating certain books by USE tron-o-tron

[Previous page](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718.md?page=3)

[Next page](https://forums.thimbleweedpark.com/t/keyboard-shortcuts/718.md?page=5)
