From the reference libraryRedM

examples

jo_libs/modules/raw-keys/autodoc/slots/examples.md

examples

Example

jo.rawKeys.listen("A", function(pressed)
  if pressed then
    print("Key A pressed")
  else
    print("Key A released")
  end
end)

Example

jo.rawKeys.remove("A")

Back to documentation