|
From: Philip K. <ph...@sh...> - 2013-02-01 20:57:23
|
On Wed, Jan 30, 2013 at 05:09:04PM +0000, Steven Raynham wrote: > Hi, > > First I'd like to compliment you on Fuse, it's a great emulator. Thanks - a lot of the credit should go to the rest of the team as well :-) > I have a small question: > > I've been running the emulator via SDL without X running, but the mouse > pointer always appears in the top left corner. I made a small adjustment by > adding SDL_ShowCursor( SDL_DISABLE ); to the sdlui.c file but it didn't > make any different. My knowledge of C is pretty low, but I get by. > > I'm not sure where to go from here, is there a location where this code can > be inserted that would have the desired effect to hiding the mouse pointer > complete (ideally without effecting the emulator when it's running in X, > but that's not essential). > > I understand if you don't have time to answer this, my thanks for even > taking a look. The best thing I can quickly do here is to include the Fuse development list, especially as I'm not an expert in the SDL UI. Cheers, Phil -- Philip Kendall <ph...@sh...> http://www.shadowmagic.org.uk/ |
|
From: Sergio B. <ser...@gm...> - 2013-02-02 00:21:28
|
I vaguely remember a similar case posted on WOS, he was using Raspberry IIRC. On SDL UI the mouse pointer is grabbed to the top left corner to keep track of movements when using fullscreen or Kempston Mouse interface. I guess SDL_ShowCursor is not working on the console or there is some mouse daemon. Lastly, on xlib UI we draw a transparent pointer instead of disabling it. Cheers, Sergio On 01/02/13 21:57, Philip Kendall wrote: > On Wed, Jan 30, 2013 at 05:09:04PM +0000, Steven Raynham wrote: >> Hi, >> >> First I'd like to compliment you on Fuse, it's a great emulator. > Thanks - a lot of the credit should go to the rest of the team as well :-) > >> I have a small question: >> >> I've been running the emulator via SDL without X running, but the mouse >> pointer always appears in the top left corner. I made a small adjustment by >> adding SDL_ShowCursor( SDL_DISABLE ); to the sdlui.c file but it didn't >> make any different. My knowledge of C is pretty low, but I get by. >> >> I'm not sure where to go from here, is there a location where this code can >> be inserted that would have the desired effect to hiding the mouse pointer >> complete (ideally without effecting the emulator when it's running in X, >> but that's not essential). >> >> I understand if you don't have time to answer this, my thanks for even >> taking a look. > The best thing I can quickly do here is to include the Fuse development > list, especially as I'm not an expert in the SDL UI. > > Cheers, > > Phil > |
|
From: Fred <fr...@sp...> - 2013-02-02 10:18:05
|
Hi Steven, The SDL code is set to disable the cursor when it is running in fullscreen mode when started in a UI, but I'm not 100% sure that we have things right when SDL is running outside a WM. You could try further modifying ui/sdl/sdlui.c and ui/sdl/sdldisplay.c to remove any calls to SDL_ShowCursor( SDL_ENABLE ) and see what happens (not in a WM as it is likely to leave your cursor hidden even on exit). Fred On 02/02/2013, at 11:21, Sergio Baldovi <ser...@gm...> wrote: > I vaguely remember a similar case posted on WOS, he was using Raspberry > IIRC. > > On SDL UI the mouse pointer is grabbed to the top left corner to keep > track of movements when using fullscreen or Kempston Mouse interface. I > guess SDL_ShowCursor is not working on the console or there is some > mouse daemon. > > Lastly, on xlib UI we draw a transparent pointer instead of disabling it. > > Cheers, > Sergio > > On 01/02/13 21:57, Philip Kendall wrote: >> On Wed, Jan 30, 2013 at 05:09:04PM +0000, Steven Raynham wrote: >>> Hi, >>> >>> First I'd like to compliment you on Fuse, it's a great emulator. >> Thanks - a lot of the credit should go to the rest of the team as well :-) >> >>> I have a small question: >>> >>> I've been running the emulator via SDL without X running, but the mouse >>> pointer always appears in the top left corner. I made a small adjustment by >>> adding SDL_ShowCursor( SDL_DISABLE ); to the sdlui.c file but it didn't >>> make any different. My knowledge of C is pretty low, but I get by. >>> >>> I'm not sure where to go from here, is there a location where this code can >>> be inserted that would have the desired effect to hiding the mouse pointer >>> complete (ideally without effecting the emulator when it's running in X, >>> but that's not essential). >>> >>> I understand if you don't have time to answer this, my thanks for even >>> taking a look. >> The best thing I can quickly do here is to include the Fuse development >> list, especially as I'm not an expert in the SDL UI. >> >> Cheers, >> >> Phil >> > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_jan > _______________________________________________ > fuse-emulator-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-emulator-devel |
|
From: Sergio B. <ser...@gm...> - 2013-02-12 00:05:10
|
On 02/02/13 11:17, Fred wrote: > The SDL code is set to disable the cursor when it is running in fullscreen mode when started in a UI, but I'm not 100% sure that we have things right when SDL is running outside a WM. I've had a closer look to this. SDL sets the SDL_FULLSCREEN flag when running Fuse inside a Window Manager and the surface is fullscreen. In a tty, SDL sets the SDL_NOFRAME flag but not SDL_FULLSCREEN, so we don't try to disable the cursor. The first workaround that comes to my mind is checking for the SDL_NOFRAME flag too: http://pastebin.com/f6pHzUDA I'm concerned about Windows Managers without window decorations. Openbox allow disabling decorations but I couldn't force any conflict, though. BTW, to avoid a fake fullscreen (display window centered on a black background) I've had to boot the kernel with the parameter vga=0x0311 to get a tty with 640x480@16bpp Cheers, Sergio |