Keyreleased and keypressed happen immediately?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Gunroar:Cannon()
Party member
Posts: 1085
Joined: Thu Dec 10, 2020 1:57 am

Keyreleased and keypressed happen immediately?

Post by Gunroar:Cannon() »

On my Android keypressed happens at the same time as keyreleased( both seem to be called when the key is actually released). Is there a way to fix?
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
Gunroar:Cannon()
Party member
Posts: 1085
Joined: Thu Dec 10, 2020 1:57 am

Re: Keyreleased and keypressed happen immediately?

Post by Gunroar:Cannon() »

It seems love.keyboard.isDown is also not working...:(
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
zorg
Party member
Posts: 3435
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Keyreleased and keypressed happen immediately?

Post by zorg »

Do you have an external keyboard connected to your android device? if not, then that's probably the reason why it does that; use love.textinput for text input; as for any other kinds of input, touch input is probably the thing you want to check for.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Gunroar:Cannon()
Party member
Posts: 1085
Joined: Thu Dec 10, 2020 1:57 am

Re: Keyreleased and keypressed happen immediately?

Post by Gunroar:Cannon() »

Okay, thnx, zorg. No, I didn't connect my external keyboard. Didn't really need the keyboard thingy and I just wanted to test it out quickly. I see! :rofl:
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests