Is there a KEY_GRAVE for input? There is a key for tilde ~ but I can’t see for grave `. Does this exist and I’m just not seeing it? The reason is I’m making an extendable console and want to use it as the toggle key for it.
Speaking of KEY_TILDE I couldn’t get it to work either. Might be busted on Windows? Holding shift and the ` key doesn’t appear to work. I tested with other shift keys such as KEY_PIPE and it doesn’t work either. Something I’m missing about detecting these for input?
Just testing KEY_TILDE again and realized (or forgot) that on Windows none of the keys which require shift to be held down to press work? For example, KEY_HASH. Do they work on Mac but not on Windows? Very required for typing in passwords into online games.
Shouldn’t those keys just be removed from the list? I mean there is no hash key on the keyboard, it’s just the 3 key. Just like there aren’t keys for capital letters.
The grave/tilde key is there, it’s called “backquote”.
function on_input(self, action_id, action)
if action_id == hash("shift") then
self.shift = true
end
if action_id == hash("shift") and action.released then
self.shift = false
end
if self.shift == true and action_id == hash("key_backquote") and action.released then
toggle_console(self)
end
end