Hi all, I cannot seem to get the scrollwheel to work with the Shift key down.
It works with any other keycode, such as LeftAlt, but not a Shift key. As soon as I press shift, the scroll wheel does not register at all.
What could be going on?
Here are two methods I’ve tried:
// method A ***********
if( Input.GetKey( KeyCode.LeftShift ) ) {
Debug.Log( "ShiftKey pressed" );
}
float scroll = Input.GetAxis( "Mouse ScrollWheel" );
if( scroll > 0.001f ) {
Debug.Log( "Scrolling = " + scroll );
// no output if shift down
}
//***********
// method B ***********
float scroll = Input.GetAxis( "Mouse ScrollWheel" );
if( scroll > 0.001f ) {
Debug.Log( "Scrolling = " + scroll );
if( Input.GetKey( KeyCode.LeftShift ) ) {
Debug.Log( "ShiftKey pressed" );
}
// no output if shift down from either Log
}
//***********
Thanks for your help!