Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this .
dusoft
Party member
Posts: 510 Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:
Post
by dusoft » Fri Nov 08, 2013 12:10 am
Hello,
can anyone explain, why is [spacebar] not detected when pressing left+up arrows, but any other arrow (cursor keys) combination works with spacebar as well?
e.g.
Code: Select all
if love.keyboard.isDown("left") and love.keyboard.isDown("down") then
.
.
.
Code: Select all
function love.keyreleased(key)
if key==" " then
blob.size=blob.size-1
if blob.size<1 then
blob.size=1
else
end
end
end
pressing the space key won't be detected when moving to upperleft corner. other combinations (directions) work OK.
Last edited by
dusoft on Fri Nov 08, 2013 5:30 pm, edited 1 time in total.
slime
Solid Snayke
Posts: 3132 Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:
Post
by slime » Fri Nov 08, 2013 1:32 am
dusoft
Party member
Posts: 510 Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:
Post
by dusoft » Fri Nov 08, 2013 8:09 am
but it normally works in other computer games (even online such as flash etc.), just love/lua does not detect that particular combination.
edited:
alternatively, can you point me to the keyboard control library (instead of the default love handling) that i could try?
i have tested other .love games and the beahviour is the same, but in the other games (outside of love/lua) no such a problem is shown.
Users browsing this forum: Bing [Bot] , Google [Bot] and 194 guests