Re: love-android-sdl2 (native, 0.9.0)
Posted: Sun Jan 19, 2014 7:03 pm
Can someone test this out on their own Android phones:
1,2,3 Axis should be x,y,z the problem is that I get 0 on all of them exept 1, 1 flickers a lot between 0 and a random number.
What do you guys get ?
Code: Select all
function love.load()
android=love.joystick.getJoysticks()[1]
end
function love.draw()
love.graphics.print(android:getName(), 10, 10)
for i,v in ipairs({android:getAxes()}) do
love.graphics.print(i..': '..v,10,20 *i + 10)
end
love.graphics.print('Number of Buttons: '..android:getButtonCount(),100,100)
love.graphics.print('Number of Axis: '..android:getAxisCount(),100,120)
love.graphics.print('Number of Hats: '..android:getHatCount(),100,140)
love.graphics.print('Supports Vibration: '..tostring(android:isVibrationSupported()),100,160)
end
What do you guys get ?