- Home /
shift key input script
simple, like "jump" is space and "Fire1" is click ect.. whats shift in scripts?
thanks 4 your time :)
you could use
if(input.Get$$anonymous$$eyDown("shift"))
I beleive. buttons usually for a quick nickname of keys.
thanks 4 your time but it says "input button shift is not set up" :/
did you type Get$$anonymous$$eyDown? or GetButtonDown? because if it's GetButtonDown it won't work
Answer by stormdead · Aug 17, 2012 at 10:50 AM
The shift input "Positive Button" is "left shift" or "right shift"
All examples:
"right shift", "left shift", "right ctrl", "left ctrl", "right alt", "left alt", "right cmd", "left cmd"
Answer by Ejlersen · Dec 29, 2010 at 06:34 PM
You can also use:
Input.GetKeyDown(KeyCode.LeftShift)
Is there a way to do this using if (Input.Get$$anonymous$$eyDown("Left shift") { //Bla bla bla }
Answer by Moomooz · Aug 15, 2012 at 11:17 AM
I cannot seem to add the left shift key in the input axes in the editor if i type shift or leftshift it just vanishes ?anyone have a clue why ,this is becoming a massive hindrance :( I am just trying to add turbo to the car tutorial with left shift but failing miserably :()
If it's not a solution, it's a comment. Don't post comments as answers.
If it's a question that isn't related, it's a new question. Don't put new questions in other questions, as answers or comments.
I found out why. Try typing in right shift in the negative area then enter left shift. I did it and it worked. BTW I know im kinda late to reply (:
It's spelled "left shift" as two words for some reason. Any slight "error" makes the field go blank. I first thought the whole Input$$anonymous$$anager was broken, but it is just really bad at taking input.
Answer by Xaxium · Oct 14, 2013 at 03:28 PM
Put "left shift" in the Positive Button field and make sure the Type field is set to "Key or Mouse Button".
Answer by raphydaphy1324 · Jan 15, 2014 at 03:49 AM
I found out why. You need to put "right shift" in the negative button then it works.