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

Added all the other hid functions

This commit is contained in:
Firew0lf 2015-08-18 18:42:56 +02:00
parent d21906c684
commit 12a315b738
2 changed files with 73 additions and 2 deletions

View file

@ -33,6 +33,10 @@ int main() {
sf2d_init();
sftd_init();
//sf2d_set_3d(true);
// Init accel/gyro
HIDUSER_EnableAccelerometer();
HIDUSER_EnableGyroscope();
// Init Lua
lua_State *L = luaL_newstate();
@ -46,5 +50,8 @@ int main() {
// Un-init (?)
sftd_fini();
sf2d_fini();
// Disable needed things
HIDUSER_DisableAccelerometer();
HIDUSER_DisableGyroscope();
return 0;
}