1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-28 00:39:30 +00:00

Renamed os.run to ctr.run ; added ctr.hid.read

All other HID functions no longer update inputs when they are called.
This commit is contained in:
Reuh 2015-08-20 14:05:56 +02:00
parent 036c0a03ce
commit 155a2e9805
4 changed files with 16 additions and 35 deletions

View file

@ -30,7 +30,8 @@ local function drawStuffIn3D(depth)
gfx.circle(125 - depth*4, 125, 16)
end
while os.run() do
while ctr.run() do
hid.read()
local keys = hid.keys()
if keys.down.start then return end