Disable screenblankers
Disable screenblankers
Is there some kind of "universal" way of preventing screenblankers from starting? Sending some kind of "ping" through the input system every now and then? It need to work on OS3 as well. Any suggestions?
Re: Disable screenblankers
If you register your application to the system via application.library you can disable screen blanking - this is often referred as the "game mode".
X1000|II/G4|440ep|2000/060|2000/040|1000
- BillEaves
- Beta Tester
- Posts: 202
- Joined: Wed Dec 22, 2010 10:14 am
- Location: Caithness, Scotland
- Contact:
Re: Disable screenblankers
There is probably no way on OS3 but that is obsolete these days anyway.AmiDog wrote:Is there some kind of "universal" way of preventing screenblankers from starting? Sending some kind of "ping" through the input system every now and then? It need to work on OS3 as well. Any suggestions?
With OS4 you can use:
SetApplicationAttrs(data->appID,APPATTR_AllowsBlanker,FALSE);
SetApplicationAttrs(data->appID,APPATTR_AllowsBlanker,TRUE);
to prevent a blanker interfering with your app.
You need to Regiseter your Appilcation - and can also set the attribute not to use the blanker here as well.
if (!(data->appID = RegisterApplication(data->appName,REGAPP_URLIdentifier, data->URLID,
REGAPP_AppIconInfo,(ULONG) data->aii,
REGAPP_AllowsBlanker, FALSE,
TAG_DONE)))
See the Autodocs for application.doc for more details.
Re: Disable screenblankers
Yeah this problem is a bit annoying, i can think about FPSE when each time i play somethings i need to move my mouse from time to time to prevent the arrive of the blankers