SDL knows when the mouse enters and leaves the window via the SDL_ActiveEvent event, so it's just a matter of implementing love.mouseentered and love.mouseexited callbacks.
I could try and make a patch but on MinGW fails on ./configure on Windows because of it misses the OpenGL library which actually exists in my lib directory (LÖVE 0.7.0 beta.)
Cheers,
Andre
EDIT: Hum, 0.7.0 beta already has an event for gaining/losing focus... FAIL
Detecting if cursor is outside the window
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Detecting if cursor is outside the window
I have no prior experience with SDL, and I have a tendency to make more errors than lines of code.giniu wrote:sdl 1.3 probably supports changing system cursor, but it's only b&w and still, animated and colour cursors are on wishlist, and not on required features for 1.3/2.0. So I doubt there will be any cross-platform way to change cursor anytime soon, unless someone who needs it will implement this feature - do I see volunteer?zac352 wrote:There should really be an actual way to change the cursor.
Hello, I am not dead.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Detecting if cursor is outside the window
Practice, my friend. Practice.zac352 wrote:I have no prior experience with SDL, and I have a tendency to make more errors than lines of code.
Help us help you: attach a .love.
Re: Detecting if cursor is outside the window
I guess I could use some more knowledge than some crappy tutorial.Robin wrote:Practice, my friend. Practice.zac352 wrote:I have no prior experience with SDL, and I have a tendency to make more errors than lines of code.
*sigh*
I wish I was living in a country with a real education system. >_>
Hello, I am not dead.
Who is online
Users browsing this forum: Google [Bot] and 5 guests