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
User avatar
dusoft
Party member
Posts: 510
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

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

Post by dusoft »

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: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post by slime »

User avatar
dusoft
Party member
Posts: 510
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

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

Post by dusoft »

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: Google [Bot] and 125 guests