Update mouseEvents.md
This commit is contained in:
@@ -88,7 +88,7 @@ achieve that:
|
|||||||
|
|
||||||
```lua
|
```lua
|
||||||
button:onClick(function()
|
button:onClick(function()
|
||||||
if(basalt.isKeyDown(keys.LeftCtrl)then
|
if(basalt.isKeyDown(keys.leftCtrl)then
|
||||||
basalt.debug("Ctrl is down!")
|
basalt.debug("Ctrl is down!")
|
||||||
else
|
else
|
||||||
basalt.debug("Ctrl is up!")
|
basalt.debug("Ctrl is up!")
|
||||||
@@ -96,3 +96,4 @@ button:onClick(function()
|
|||||||
end)
|
end)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Make sure to always use the available `keys` table: https://computercraft.info/wiki/Keys_(API)
|
||||||
|
|||||||
Reference in New Issue
Block a user