Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Regarding Numpad

Discussion in 'Scripting' started by MahaloAloha, Jun 17, 2021.

  1. MahaloAloha

    MahaloAloha

    Joined:
    Jan 9, 2021
    Posts:
    31
    I have searched high and low for reference materials for this subject and would greatly appreciate any assistance.

    In C#:
    1) what are the associated variable names for each numpad input
    2) If numpad is off, will all numpad input turn off - or will there still be usable input? If so, what are those inputs?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,769
    C# is a computer language and knows nothing whatsoever about keypads.

    If you want to access keypad input while in context of Unity, the
    KeyCode
    enumeration is used with the InputManager:

    https://docs.unity3d.com/ScriptReference/KeyCode.html
     
    Bunny83 likes this.
  3. MahaloAloha

    MahaloAloha

    Joined:
    Jan 9, 2021
    Posts:
    31
    Will having NUMLOCK on/off block numpad input?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,769
    Give it a try!