Page 1 of 1

Fullscreen mode mouse locking on Sam460

Posted: Sat Jan 12, 2013 2:05 pm
by gtmooya
I have run into a report of a problem with my project, Assist. When switching to fullscreen mode the mouse pointer locks, once in fullscreen mode the only means quitting is Ctrl+C. The problem was reported by a Sam460 user, but I've not been able to reproduce the behaviour on a Sam440, where the fullscreen mode works fine. Have a missed something in the code? Here's the code I'm using:

Code: Select all

If Exists("ENVARC:Assist/fullscreen")
    ChangeDisplayMode(#DISPMODE_FULLSCREEN, 800, 600)
    fullscreen = 1
EndIf
I'm using Hollywood 5.2 on AmigaOS 4.1 update 6.

Thanks!

Re: Fullscreen mode mouse locking on Sam460

Posted: Sat Jan 12, 2013 5:48 pm
by airsoftsoftwair
Does it only happen with that specific script? Can you run the 3DText example from the Hollywood GUI in fullscreen mode or does that freeze as well?

Re: Fullscreen mode mouse locking on Sam460

Posted: Sat Jan 12, 2013 6:03 pm
by djrikki
I would be that SAM460 user.

Re: Fullscreen mode mouse locking on Sam460

Posted: Sun Jan 13, 2013 12:27 am
by gtmooya
@Andreas

The 3DText demo works fine here in fullscreen mode, no mouse pointer lockup, however I am using a Sam440. In my own scipt there's no mouse pointer lock up when running on the 440.

@djrikki

Would you mind trying out Andreas' suggestion on your 460?

Re: Fullscreen mode mouse locking on Sam460

Posted: Sun Jan 13, 2013 1:29 pm
by djrikki
Sure, am in the office most of today to work on Jack, I'll give this a try and see what happens.

Re: Fullscreen mode mouse locking on Sam460

Posted: Mon Feb 18, 2013 12:19 am
by gtmooya
@djrikki

Any luck?

Have added a 'escape route' in latest version so that if the mouse pointer gets locked the user can cancel fullscreen mode by pressing the return key.

Re: Fullscreen mode mouse locking on Sam460

Posted: Tue Feb 19, 2013 12:32 am
by djrikki
Will try and remember to try this in the morning.

Re: Fullscreen mode mouse locking on Sam460

Posted: Tue Feb 19, 2013 10:18 am
by djrikki
3DText example on full screen works fine here.

Re: Fullscreen mode mouse locking on Sam460

Posted: Wed May 15, 2013 8:49 pm
by gtmooya
@djrikki

Thanks for the feedback.

Not been able to replicate the mouse locking behaviour on my Sam440 however I have found another oddity with the fullscreen feature.

If launched from AmiDock Assist always crashes (with GrimReaper) when switching back to window from fullscreen mode, yet oddly if the program is launched from the drawer this crash doesn't happen at all. Similarily there is no crash when switching the other way, i.e. window to fullscreen, only when returning to Workbench window. :?

Code I'm currently using to return Assist to window:

Code: Select all

Function p_PrefsWindow()
    If fullscreen = 1
         ChangeDisplayMode(#DISPMODE_WINDOWED)
         fullscreen = 0
         display$ = "window"
         If Exists("ENVARC:Assist/display")
              DeleteFile("ENVARC:Assist/display")
         EndIf
         StringToFile(display$, "ENVARC:Assist/display")
         If LayerExists("fullscreen")
              HideLayer("fullscreen")
              ShowLayer("window")
         EndIf
         HideLayer("quit")
         ShowLayer("drawer")
    EndIf
EndFunction