Modify account example
This commit is contained in:
parent
463cb5772b
commit
8e3dda1bbf
1 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import libnx/input
|
||||||
import libnx/app
|
import libnx/app
|
||||||
|
|
||||||
proc main() =
|
proc main() =
|
||||||
initDefault()
|
graphics.initDefault()
|
||||||
discard consoleInit(nil)
|
discard consoleInit(nil)
|
||||||
|
|
||||||
echo "\x1b[5;2H" & "Account info:"
|
echo "\x1b[5;2H" & "Account info:"
|
||||||
|
|
@ -42,6 +42,9 @@ proc main() =
|
||||||
mainLoop:
|
mainLoop:
|
||||||
let keysDown = keysDown(Controller.P1_AUTO)
|
let keysDown = keysDown(Controller.P1_AUTO)
|
||||||
|
|
||||||
|
if keysDown.len() > 0:
|
||||||
|
echo keysDown
|
||||||
|
|
||||||
if ControllerKey.Plus in keysDown:
|
if ControllerKey.Plus in keysDown:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue