From f1019f63a0ca0d4fc81a30406254cfe76744df32 Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:42:08 +0100 Subject: [PATCH] coreinit/im: Add missing `IMEvent`s --- include/coreinit/im.h | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/include/coreinit/im.h b/include/coreinit/im.h index 47668c05..cf192a28 100644 --- a/include/coreinit/im.h +++ b/include/coreinit/im.h @@ -119,14 +119,21 @@ typedef enum IMTimer typedef enum IMEvent { - IM_EVENT_UNK1 = 1 << 1, - IM_EVENT_UNK2 = 1 << 2, - IM_EVENT_UNK3 = 1 << 3, - IM_EVENT_APD = 1 << 4, - IM_EVENT_UNK5 = 1 << 5, - IM_EVENT_UNK6 = 1 << 6, - IM_EVENT_SYNC = 1 << 7, - IM_EVENT_UNK8 = 1 << 8, + IM_EVENT_ACTIVE = 1 << 0, + IM_EVENT_INACTIVE = 1 << 1, + IM_EVENT_DIM = 1 << 2, + IM_EVENT_UNDIM = 1 << 3, + //! Automatic power down + IM_EVENT_APD = 1 << 4, + //! Controller power button was pressed + IM_EVENT_POWER = 1 << 5, + //! Home button was pressed + IM_EVENT_HOME = 1 << 6, + //! Console sync button was pressed + IM_EVENT_SYNC = 1 << 7, + IM_EVENT_RESET = 1 << 8, + //! Event notify was cancelled + IM_EVENT_CANCELLED = 1 << 31, } IMEvent; IOSHandle