Skip to content

Conversation

@adriengivry
Copy link
Member

Keys from 0 to 9 on the alpha numeric keyboard are now working.

This code wasn't working:

if Inputs.GetKeyDown(Key.1) then -- Do note the Key.1 here (1 isn't a correct variable name so it wouldn't work)
    Debug.Log("Alpha 1 pressed")
end

This code now works:

if Inputs.GetKeyDown(Key.ALPHA_1) then -- Key.1 replaced by Key.ALPHA_1 in lua binding (Now works)
    Debug.Log("Alpha 1 pressed")
end

Fixes #134

Keys from 0 to 9 on the alpha numeric keyboard are now working.
@adriengivry adriengivry added Bug Critical Something that should be fixed quickly labels Sep 27, 2020
@litelawliet litelawliet merged commit f5270a5 into develop Sep 28, 2020
@litelawliet litelawliet deleted the fix/key_enum_alphanumeric_keys branch September 28, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical Something that should be fixed quickly

Development

Successfully merging this pull request may close these issues.

Some lua enumeration values are invalid

3 participants