mouserelease and mousepressed not working

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
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

mouserelease and mousepressed not working

Post by KingRecycle »

The functions don't seem to get called when I press my mouse buttons or mouse wheel.

Is this a known issue or something for me just messed up?

Code: Select all

function love.mousereleased(x, y, button)
  print(x..","..y.." : "..button)
end
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: mouserelease and mousepressed not working

Post by josefnpat »

Works for me;

Code: Select all

seppi@seppi7:~/Desktop$ love .
189,182 : l
308,220 : l
536,433 : l
235,144 : l
554,135 : r
344,182 : m
291,286 : wd
291,286 : wu
Can you post your dev environment and love version?
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: mouserelease and mousepressed not working

Post by KingRecycle »

I thought I placed it in the main.lua and for some reason I didn't. :|

I shouldn't code when half-asleep.

Thanks for the reply though.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest