#how can i check if the Tilde key was
1 messages · Page 1 of 1 (latest)
yeah
i did notice that the current keyboard has properties for each key's keycontrol
but there doesnt seem to be one for tilde
Okay so to get the ~ key, you need to hold down shift and then press the key
So you need to have a modifier
true, i mean, i guess that by the "tilde" key i meant more like, give me a sec
the key to the left of the number 1 on a qwerty layout
the one that's usually used for opening a commandline in some games
(IE: counter strike)
aight... i think i'll have to probably generate a C# class for my actions then
unless, hm. i do have the player using the playerinput class, so i could load the InputActionAssets and find the control guid and check if its being pressed or not
And then when you're scripting it in whatever code you need, you're going to use a line thats something along the lines of
private boolean isPressed;
private void Awake()
{
nebbyControls = new NebbyControls();
}
private void Update()
{
isPressed = nebbyControls.Tilde.Example.triggered();
}
Does that make sense?
Tilde is your Action map
Example is your Action
Your action type is a button
So it will return a float either 1 or 0
And then for your action example, youve got one binding with one modifier
The binding being the ` key and the modifier being the left shift
Does that help at all?