From 1f6d23c049a2f676d341623ff92af1241d4b5efd Mon Sep 17 00:00:00 2001 From: devnoname120 Date: Mon, 10 Apr 2017 01:13:51 +0200 Subject: Add some brightness functions --- include/user/avconfig.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/user/avconfig.h (limited to 'include') diff --git a/include/user/avconfig.h b/include/user/avconfig.h new file mode 100644 index 0000000..fe0596d --- /dev/null +++ b/include/user/avconfig.h @@ -0,0 +1,34 @@ +#ifndef _PSP2_AVCONFIG_H_ +#define _PSP2_AVCONFIG_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/*** + * Get the maximum brightness. + * + * @param[out] maxBrightness - Maximum brightness. + * + * @return 0 on success, < 0 on error. + */ +int sceAVConfigGetDisplayMaxBrightness(int *maxBrightness); + +/*** + * Set the screen brightness. + * + * @param brightness - Brightness that the screen will be set to (range 21-65536, 0 turns off the screen). + * + * @return 0 on success, < 0 on error. + */ +int sceAVConfigSetDisplayBrightness(int brightness); + + +#ifdef __cplusplus +} +#endif + +#endif + -- cgit v1.2.3