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:
parent
d21906c684
commit
12a315b738
2 changed files with 73 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue