I Need Help with Fuse!

edited October 2012 in Emulators
I'm in the process of making a dedicated Spectrum emulation machine based on a Raspberry Pi.
I want the machine to boot straight into Speccy mode, no gui.

I've successfully installed the SDL version, and it's running kinda ok, but I need some help with fine tuning it.

Here's a list of problems that I'm having, any help will be very much appreciated!

1. Can I get rid of/hide the mouse pointer? I'm not using a mouse, keyboard only

2. There's no border! I want the display to look like a proper Spectrum, border and all.

I'm so close to getting this working properly, but these few problems are really getting in the way :(

If I get this all working properly, I'll make an image of my SD card and upload it so everyone can have an instant Spectrum!

I'm building the Pi into a chassis attached to the bottom of a mini (laptop-style) keyboard. Should be pretty cool as long as I can get these problems solved...
Post edited by Jamesbeat on

Comments

  • edited October 2012
    Jamesbeat wrote: »
    1. Can I get rid of/hide the mouse pointer? I'm not using a mouse, keyboard only
    As far as I can see, the answer is no. However it looks like this could be made possible fairly easily so perhaps you should submit a feature request.
  • edited October 2012
    It seems that I was looking in the wrong place for my answers, the problem is not with Fuse, but with the composite video output I was using and my SDL setup.

    I was hoping to be able to use composite video for compatibility with more displays, but the output is horrible. When I switched to HDMI, it resolved the problems with fullscreen and the border, and now the display is correct.

    The mouse pointer is not anything to do with Fuse, it's SDL that's putting it there.
    I haven't figured it out yet, but I know that it is possible to get rid of the pointer, so that will be solved soon too.

    Now I just have to make a few tweaks here and there, put the games on the SD card, get the machine to boot directly into Fuse etc.

    Anyone interested in making a Pi into a Spectrum?
    I'll upload an image if so, so it will be plug and play...
  • edited October 2012
    Jamesbeat wrote: »
    The mouse pointer is not anything to do with Fuse, it's SDL that's putting it there.

    [strike]Aha, you are quite correct. When in fullscreen it looks like it is doing SDL_ShowCursor( SDL_DISABLE ); which should be hiding the cursor...[/strike]

    Nope, SDL_ShowCursor is enabled by default and fuse doesn't disable it when it initialises.
  • edited October 2012
    guesser wrote: »
    [strike]Aha, you are quite correct. When in fullscreen it looks like it is doing SDL_ShowCursor( SDL_DISABLE ); which should be hiding the cursor...[/strike]

    Nope, SDL_ShowCursor is enabled by default and fuse doesn't disable it when it initialises.

    Any idea how to go about getting it to disable the cursor?
    I didn't even know what SDL was until yesterday, so I'm pretty clueless...
  • edited October 2012
    Unfortunately I can't build the sdl ui on windows from my sources. As far as I can see you could easily bodge it by adding one line to sdlui.c but I haven't tested it.

    if someone wants to try, my theory is that if you add a call to SDL_ShowCursor( SDL_DISABLE ); in ui_mouse_grab() when settings_current.full_screen is true.
  • edited October 2012
    guesser wrote: »
    Unfortunately I can't build the sdl ui on windows from my sources. As far as I can see you could easily bodge it by adding one line to sdlui.c but I haven't tested it.

    if someone wants to try, my theory is that if you add a call to SDL_ShowCursor( SDL_DISABLE ); in ui_mouse_grab() when settings_current.full_screen is true.

    Man, looks like I need to learn C :(
    I have it working now and it's perfect except for that ****ing cursor!

    I still haven't found a graceful way to shut it down yet either...

    My keyboard should arrive tomorrow, but I'm working all weekend, so the hardware side of things will probably have to wait until my day off on Monday.


    I just turned off all of the fast-loading features and showed my 10 year old son what it was like to have to wait several minutes for a game to load. He was suitably horrified :D
  • edited October 2012
    Jamesbeat wrote: »
    I still haven't found a graceful way to shut it down yet either...
    Quit fuse and type "sudo shutdown -h now" at the command prompt to close it down nicely :)
  • edited October 2012
    ccowley wrote: »
    Quit fuse and type "sudo shutdown -h now" at the command prompt to close it down nicely :)

    Yeah I know how to shut it down, but having to type a command isn't ideal is it?
    What I'd like to do is have a hardware button for shutdown, maybe wired to a couple of the GPIO pins or something.

    I also wanted to implement a physical reset button on the left side of the machine, just like my Spectrum +.
    I was going to wire it to the keyboard matrix to simulate pressing the function key that resets the emulated machine (f6 maybe?) but unfortunately, pressing the reset key calls up a dialogue box to confirm before it actually performs the reset. I turned off confirmations, but for some reason it still asks me if I'm sure, and I have to press enter before it will reset.

    Another thing I have to fix is the wierd and unpleasant way Fuse is listing my games in the file system. They're all over the place, some are capitalized and some are lower case, and the ones that are in folders are distributed in a strange way. I need to go back and edit my game files to make it easier to find the game I want, which I imagine is going to be great fun :(
Sign In or Register to comment.