- Home /
Question by
POiD · May 08, 2015 at 03:28 PM ·
inputmanagerinput.getaxis
Input.GetAxisRaw with delete and shift
Hello,
I'm trying to get a combination of shift key and Delete key to produce a result in my game, using Input.GetAxisRaw(). I have defined both shift (left and right) and delete as Axes in the Input manager.
Axes->Delete
Name: Delete
Positive Button: delete
Gravity: 1000
Dead: 0.001
Sensitivity: 1000
Type: Key or Mouse Button
Axis: X axis
Joy Num: Get Motion from all Joysticks
Other values are blank.
In the script code called from Update() I have the following:
if (Input.GetAxisRaw (Keys.Delete) != 0)
{}
Keys.Delete = "Delete" from a Keys class to just eliminate typos.
This works fine if I just hit Delete on its own. However, when I hold down shift and hit Delete, the Axis condition is not fired. I verified this with debug breakpoints too.
Is anyone else able to create this issue? Could this be as a result of the Unity hot-key for shift+del causing issues when running my game in the editor? Is this a bug potentially? Did I mess something up?
Comment