Page 1 of 1

mouserelease and mousepressed not working

Posted: Tue Sep 11, 2012 1:43 am
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

Re: mouserelease and mousepressed not working

Posted: Tue Sep 11, 2012 3:06 am
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?

Re: mouserelease and mousepressed not working

Posted: Tue Sep 11, 2012 4:25 pm
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.