HELP: question re love.keyborad (space not detected)

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.
Post Reply
dusoft
Party member
Posts: 104
Joined: Fri Nov 08, 2013 12:07 am

HELP: question re love.keyborad (space not detected)

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.

User avatar
slime
Solid Snayke
Posts: 2887
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: question re love.keyborad (space not detected)

Post by slime » Fri Nov 08, 2013 1:32 am


dusoft
Party member
Posts: 104
Joined: Fri Nov 08, 2013 12:07 am

Re: question re love.keyborad (space not detected)

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests