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

Removed some "(lua_Integer)", Fixed some pointers-related stuff

This commit is contained in:
Firew0lf 2015-08-18 19:30:53 +02:00
parent 12a315b738
commit 79f4086cf0
2 changed files with 26 additions and 26 deletions

View file

@ -80,8 +80,8 @@ static int hid_touch(lua_State *L) {
touchPosition pos;
hidTouchRead(&pos);
lua_pushinteger(L, (lua_Integer)pos.px);
lua_pushinteger(L, (lua_Integer)pos.py);
lua_pushinteger(L, pos.px);
lua_pushinteger(L, pos.py);
return 2;
}
@ -92,8 +92,8 @@ static int hid_circle(lua_State *L) {
circlePosition pos;
hidCircleRead(&pos);
lua_pushinteger(L, (lua_Integer)pos.dx);
lua_pushinteger(L, (lua_Integer)pos.dy);
lua_pushinteger(L, pos.dx);
lua_pushinteger(L, pos.dy);
return 2;
}
@ -104,9 +104,9 @@ static int hid_accel(lua_State *L) {
accelVector pos;
hidAccelRead(&pos);
lua_pushinteger(L, (lua_Integer)pos.x);
lua_pushinteger(L, (lua_Integer)pos.y);
lua_pushinteger(L, (lua_Integer)pos.z);
lua_pushinteger(L, pos.x);
lua_pushinteger(L, pos.y);
lua_pushinteger(L, pos.z);
return 3;
}
@ -117,9 +117,9 @@ static int hid_gyro(lua_State *L) {
angularRate pos;
hidGyroRead(&pos);
lua_pushinteger(L, (lua_Integer)pos.x);
lua_pushinteger(L, (lua_Integer)pos.y);
lua_pushinteger(L, (lua_Integer)pos.z);
lua_pushinteger(L, pos.x);
lua_pushinteger(L, pos.y);
lua_pushinteger(L, pos.z);
return 3;
}
@ -128,7 +128,7 @@ static int hid_volume(lua_State *L) {
u8 volume = 0;
HIDUSER_GetSoundVolume(&volume);
lua_pushinteger(L, (lua_Integer)volume);
lua_pushinteger(L, volume);
return 1;
}