Skip to main content
GameDev.net gamedev.net
🔒 Locked

What's the key to the left of '1' called?

Started by BauerGL Dec 12, 2004 at 8:28 AM 11 replies 21.6k views
Original Post
BauerGL
BauerGL
Hi, I recently finished creating a console, with the help of the article posted here a while ago. It works and everything but there is one thing I need help with. I'd like to have it so that the console is de/activated by using the key to the left of the 1 key. I think it's called the tilde key but I can't find any DIK_ value for it. Do you have any tips? :)
@mikaelbauer Super Sportmatchen - A retro multiplayer competitive sports game project!
grekster
grekster
The tilde key is this "~" IIRC. On American keyboards I believe it is next to the 1, on English keyboards it is next to the enter key with the # symbol.
Quote: Original post by BosskIn Soviet Russia, you STFU WITH THOSE LAME JOKES!
Muhammad Haggag
Muhammad Haggag
There has been a thread about this recently - I seem to recall it was DIK_GRAVE.

MauMan
MauMan
DIK_GRAVE
---CyberbrineDreamsSuspected implementation of the Windows idle loop: void idle_loop() { *((char*)rand()) = 0; }
BauerGL
BauerGL
Sweet, thank you very much! Strange name though. :)
@mikaelbauer Super Sportmatchen - A retro multiplayer competitive sports game project!
darookie
darookie
The name isn't strange at all. On some keyboards (like the UK keyboard on my laptop) the key next to the '1' is a french accent-grave, which might explain the name.
Ra
Ra
The grave (`) mark is the actual key; a shift is required for the tilde (~).
Ra
BauerGL
BauerGL
Hmm okey, well that makes sense then. However, I wonder why it's known as tilde in that case.
@mikaelbauer Super Sportmatchen - A retro multiplayer competitive sports game project!
markr
markr
I have a UK keyboard, and it's a "backtick" ` and this: ¬

Tilde is on a totally different key on UK keyboards (along with the hash #)

Mark
Fruny
Fruny
On my FR keyboard, I've got a 2 at the left of the 1 key.
The tilde ~ is in third-level shift on the 2 key and on shift 2 (xmodmap settings)
The backtick ` is in third-level shift on the 7 key.
The negation ¬ is in third-level shift on the 2 key (xmodmap settings)

Fascinating.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
darookie
darookie
Quote:
Original post by markr
I have a UK keyboard, and it's a "backtick" ` and this: ¬

Tilde is on a totally different key on UK keyboards (along with the hash #)

Mark

What's a backtick? I always thought it's the same as the grave?
Fruny
Fruny
Quote:
Original post by Anonymous Poster
It is extremely pointless because neither of those characters ever are by themselves.


` is used in shell scripts. The enclosed text is evaluated and the output is substituted to the original text.
~ is very commonly used in source code.

¬ and ² aren't commonly seen, for most programming languages limit themselves to ASCII source encoding.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.