cai567890 / pcsx2

Automatically exported from code.google.com/p/pcsx2
1 stars 0 forks source link

disable screensaver when pcsx2 is running #672

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
4) What version of PCSX2 are you using? On what operating system? Plugins?
0.9.6 with zerogs 0.97.1

5) Please provide any additional information below.
would like to have screensaver automatically disabled when pcsx2 is active
(running)

Original issue reported on code.google.com by twig.ngu...@gmail.com on 25 Apr 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Lilypad already has an option for this. Invalid

Original comment by pcsx2gu...@gmail.com on 25 Apr 2010 at 10:06

GoogleCodeExporter commented 9 years ago
But I'm using "SSSPSX PAD Plugin Pressure Mod 1.7.0", not Lilypad

Original comment by twig.ngu...@gmail.com on 26 Apr 2010 at 12:44

GoogleCodeExporter commented 9 years ago
This sort of setting has a global scope and should be part of the main emulator 
core,
not part of an optional plugin which disables the feature when using a different
controller plugin.

Original comment by twig.ngu...@gmail.com on 26 Apr 2010 at 1:23

GoogleCodeExporter commented 9 years ago
Extract from Lilypad src
Its simple enough to add to the main game window message handler.

case WM_SYSCOMMAND:
    if ((wParam == SC_SCREENSAVE || wParam == SC_MONITORPOWER) && config.disableScreenSaver)
        return 0;
    break;

Original comment by twig.ngu...@gmail.com on 26 Apr 2010 at 1:34

GoogleCodeExporter commented 9 years ago
Well since it's easy enough, make a patch and submit it. There is a reason this 
was
implemented in a plugin and afaik that was because the core of PCSX2 couldn't 
do it.

Original comment by pcsx2gu...@gmail.com on 26 Apr 2010 at 5:53

GoogleCodeExporter commented 9 years ago
How come it couldn't do it?
I only took a quick peek at the code

Original comment by twig.ngu...@gmail.com on 26 Apr 2010 at 5:57

GoogleCodeExporter commented 9 years ago
hmm i see, WM_SYSCOMMAND messages are only sent to the active window
that being the one rendering the graphics during gameplay

i was hoping to hook it into the main app frame and get it working through 
that, but
i see it isnt so easy anymore.

Original comment by twig.ngu...@gmail.com on 26 Apr 2010 at 7:50