nim-libnx/examples/helloworld/helloworld.nim
Joey Yakimowich-Payne 83499c04f9 Cleanup imports
2018-07-06 22:04:50 +09:00

19 lines
312 B
Nim

import sets
import libnx/[graphics, console, app, input]
proc main() =
initDefault()
console.init()
printAt (17, 20), "HELLO FROM NIM"
mainLoop:
let keysDown = keysDown(Controller.P1_AUTO)
if keysDown.len() > 0:
echo keysDown
if ControllerKey.Plus in keysDown:
break
main()