Search Unity

Feedback Bug digit9Key

Discussion in 'New Input System' started by hummer_4x4, Mar 24, 2019.

  1. hummer_4x4

    hummer_4x4

    Joined:
    Feb 3, 2013
    Posts:
    11
    Version 021

    Code (CSharp):
    1.        
    2.         if(Keyboard.current.digit1Key.wasReleasedThisFrame) toolbarUIControl.setActive = 1; //It's OK
    3.         else if(Keyboard.current.digit8Key.wasReleasedThisFrame) toolbarUIControl.setActive = 8;//It's OK
    4.         else if(Keyboard.current.digit9Key.wasReleasedThisFrame) toolbarUIControl.setActive = 9; //It's Error, Called digit8Key = Result 8;
    5.         else if(Keyboard.current.numpad9Key.wasReleasedThisFrame) toolbarUIControl.setActive = 9;//It's OK
    6.         else if(Keyboard.current.digit5Key.wasReleasedThisFrame) toolbarUIControl.setActive = 5;//It's OK
    7.  
     
  2. Juixa

    Juixa

    Unity Technologies

    Joined:
    Sep 6, 2017
    Posts:
    7