130 posts
Location
Here
Posted 19 March 2016 - 05:42 PM
local key = os.pullEvent('key')
keys.getName(key)
should allow detection for alternate keys somehow(idk how seeing a pullEvent only pulls well, one event), so that you can detect an explicit '?' char or '!' etc…
Edited on 19 March 2016 - 04:43 PM
1610 posts
Posted 19 March 2016 - 06:14 PM
local key = os.pullEvent('key')
keys.getName(key)
should allow detection for alternate keys somehow(idk how seeing a pullEvent only pulls well, one event), so that you can detect an explicit '?' char or '!' etc…
Try the char event. It is only sent when there is an explicit character typed - for example 'g', 'G', '_', ' ', ')', etc
local _, c = os.pullEvent("char")
print(c)
130 posts
Location
Here
Posted 19 March 2016 - 07:58 PM
Thanks :)/>
Edited on 19 March 2016 - 07:16 PM
8543 posts
Posted 19 March 2016 - 09:49 PM
Moved to Ask a Pro.