1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

GMS 2 What keys are available/unavailable for keyboard_check?

Discussion in 'Programming' started by NimonoSolenze, Jun 2, 2018.

  1. NimonoSolenze

    NimonoSolenze Member

    Joined:
    Jul 25, 2017
    Posts:
    19
    Been searching the question, can't find the answer. I can find a list of vk keys, but I can't find a list saying what's valid for ord for input. especially... ~ < > ? : " { } | _ + (none of them are on keypad- the + is the key to the left of my backspace)

    I can't seem to get any of them to respond to ord, and I'd like to have the option for them in rebinding controls, in case for whatever reason someone wants to use them. (I may not want to, but I believe in making it possible JUST IN CASE, since it should be easy if it is!)

    Are they valid keys at all? Am I completely overlooking what I should be using for these keys to make them work? Is it perhaps based on a different keyboard layout altogether? For the record, my keyboard is QWERTY, and the previously-stated keys are in uppercase, not on the keypad, and equate to the following lowercase: ` , . / ; ' [ ] \ - =
     
  2. TheouAegis

    TheouAegis Member

    Joined:
    Jul 3, 2016
    Posts:
    7,037
    You have to pretty much use the lowercase values for those keys. You can google the key codes. Of course this means if the player is using a keyboard which has the keys mapped differently for whatever reason, it's not going to work as you intended. Of course, this is one of the main reasons why most programs these days offer remapping.

    If you do remap control, use keyboard_lastkey, not keyboard_string.
     
  3. Jdown79

    Jdown79 Member

    Joined:
    Aug 21, 2016
    Posts:
    69

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice