iimurpyh / pilot-lua

Documentation for the programming language of ROBLOX game Waste of Space
22 stars 0 forks source link

Keyboard KeyPressed event parameters #5

Closed TK-A369 closed 2 years ago

TK-A369 commented 2 years ago

This wiki says that parameters of KeyPressed event are: KeyCode key, string Player , but I discovered that those parameters are: key: Enum.KeyCode, keyStr: string, userInputState: Enum.UserInputState, player: string . And userInputState is always Enum.UserInputState.End . Description of this event should be corrected.

TK-A369 commented 2 years ago

keyStr is a stringified key, so in example a, b, A. Holding shift makes capital letter. But on non-printable characters such as Return/Enter or Backspace it's empty string.

iimurpyh commented 2 years ago

Fixed. What a weird way to do the event arguments, two of them are useless LOL

hail12pink commented 1 year ago

what this is an absolutely horrendous function