Disable screenblankers

This forum is for general developer support questions.
Post Reply
AmiDog
Posts: 5
Joined: Sat Jun 18, 2011 8:09 am

Disable screenblankers

Post by AmiDog »

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?
User avatar
cha05e90
Posts: 90
Joined: Fri Jun 17, 2011 10:15 pm
Location: Germany
Contact:

Re: Disable screenblankers

Post by cha05e90 »

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
User avatar
BillEaves
Beta Tester
Beta Tester
Posts: 202
Joined: Wed Dec 22, 2010 10:14 am
Location: Caithness, Scotland
Contact:

Re: Disable screenblankers

Post by BillEaves »

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?
There is probably no way on OS3 but that is obsolete these days anyway.

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.
User avatar
samo79
Posts: 572
Joined: Fri Jun 17, 2011 11:13 pm
Location: Italy

Re: Disable screenblankers

Post by samo79 »

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