Fullscreen mode mouse locking on Sam460

Discuss any general programming issues here
Post Reply
gtmooya
Posts: 11
Joined: Sun Apr 15, 2012 4:09 pm
Contact:

Fullscreen mode mouse locking on Sam460

Post 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!
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Fullscreen mode mouse locking on Sam460

Post 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?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Fullscreen mode mouse locking on Sam460

Post by djrikki »

I would be that SAM460 user.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
gtmooya
Posts: 11
Joined: Sun Apr 15, 2012 4:09 pm
Contact:

Re: Fullscreen mode mouse locking on Sam460

Post 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?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Fullscreen mode mouse locking on Sam460

Post by djrikki »

Sure, am in the office most of today to work on Jack, I'll give this a try and see what happens.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
gtmooya
Posts: 11
Joined: Sun Apr 15, 2012 4:09 pm
Contact:

Re: Fullscreen mode mouse locking on Sam460

Post 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.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Fullscreen mode mouse locking on Sam460

Post by djrikki »

Will try and remember to try this in the morning.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Fullscreen mode mouse locking on Sam460

Post by djrikki »

3DText example on full screen works fine here.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
gtmooya
Posts: 11
Joined: Sun Apr 15, 2012 4:09 pm
Contact:

Re: Fullscreen mode mouse locking on Sam460

Post 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
Post Reply