Line 648: |
Line 648: |
| This is the same mapping as used for the [[GPU/External_Registers#Framebuffer_color_formats|GPU framebuffer color formats]]. | | This is the same mapping as used for the [[GPU/External_Registers#Framebuffer_color_formats|GPU framebuffer color formats]]. |
| | | |
− | == HomeButtonState == | + | == AppletPos == |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |
| ! Value | | ! Value |
| ! Description | | ! Description |
| + | |- |
| + | | -1 |
| + | | POS_NONE |
| |- | | |- |
| | 0 | | | 0 |
− | | HOME_BUTTON_NONE | + | | POS_APP |
| |- | | |- |
| | 1 | | | 1 |
− | | HOME_BUTTON_SINGLE_PRESSED | + | | POS_APPLIB |
| |- | | |- |
| | 2 | | | 2 |
− | | HOME_BUTTON_DOUBLE_PRESSED | + | | POS_SYS |
| + | |- |
| + | | 3 |
| + | | POS_SYSLIB |
| + | |- |
| + | | 4 |
| + | | POS_RESIDENT |
| |} | | |} |
| | | |
− | == OrderToCloseState == | + | == QueryReply == |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |
Line 671: |
Line 680: |
| |- | | |- |
| | 0 | | | 0 |
− | | ORDER_TO_CLOSE_STATE_NONE | + | | REPLY_REJECT |
| |- | | |- |
| | 1 | | | 1 |
− | | ORDER_TO_CLOSE_STATE_RECEIVED | + | | REPLY_ACCEPT |
| + | |- |
| + | | 2 |
| + | | REPLY_LATER |
| |} | | |} |
| | | |
− | == SleepNotificationState == | + | == Notification == |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |
Line 684: |
Line 696: |
| |- | | |- |
| | 0 | | | 0 |
− | | NOTIFY_NONE | + | | NOTIFICATION_NONE |
| |- | | |- |
| | 1 | | | 1 |
− | | NOTIFY_SLEEP_QUERY | + | | NOTIFICATION_HOME_BUTTON_1 |
| |- | | |- |
| | 2 | | | 2 |
− | | NOTIFY_SLEEP_ACCEPT | + | | NOTIFICATION_HOME_BUTTON_2 |
| |- | | |- |
| | 3 | | | 3 |
− | | NOTIFY_SLEEP_REJECT | + | | NOTIFICATION_SLEEP_QUERY |
| |- | | |- |
| | 4 | | | 4 |
− | | NOTIFY_SLEEP_ACCEPTED | + | | NOTIFICATION_SLEEP_CANCELED_BY_OPEN |
| |- | | |- |
| | 5 | | | 5 |
− | | NOTIFY_AWAKE | + | | NOTIFICATION_SLEEP_ACCEPTED |
| + | |- |
| + | | 6 |
| + | | NOTIFICATION_SLEEP_AWAKE |
| + | |- |
| + | | 7 |
| + | | NOTIFICATION_SHUTDOWN |
| + | |- |
| + | | 8 |
| + | | NOTIFICATION_POWER_BUTTON_CLICK |
| + | |- |
| + | | 9 |
| + | | NOTIFICATION_POWER_BUTTON_CLEAR |
| + | |- |
| + | | 10 |
| + | | NOTIFICATION_TRY_SLEEP |
| + | |- |
| + | | 11 |
| + | | NOTIFICATION_ORDER_TO_CLOSE |
| |} | | |} |
| | | |
− | == AppletPos == | + | == Command == |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |
| ! Value | | ! Value |
| ! Description | | ! Description |
− | |-
| |
− | | -1
| |
− | | POS_NONE
| |
| |- | | |- |
| | 0 | | | 0 |
− | | POS_APP | + | | COMMAND_NONE |
| |- | | |- |
| | 1 | | | 1 |
− | | POS_APPLIB | + | | COMMAND_WAKEUP |
| |- | | |- |
| | 2 | | | 2 |
− | | POS_SYS | + | | COMMAND_REQUEST |
| |- | | |- |
| | 3 | | | 3 |
− | | POS_SYSLIB | + | | COMMAND_RESPONSE |
| |- | | |- |
| | 4 | | | 4 |
− | | POS_RESIDENT | + | | COMMAND_EXIT |
| + | |- |
| + | | 5 |
| + | | COMMAND_MESSAGE |
| + | |- |
| + | | 6 |
| + | | COMMAND_HOME_BUTTON_SINGLE |
| + | |- |
| + | | 7 |
| + | | COMMAND_HOME_BUTTON_DOUBLE |
| + | |- |
| + | | 8 |
| + | | COMMAND_DSP_SLEEP |
| + | |- |
| + | | 9 |
| + | | COMMAND_DSP_WAKEUP |
| + | |- |
| + | | 10 |
| + | | COMMAND_WAKEUP_BY_EXIT |
| + | |- |
| + | | 11 |
| + | | COMMAND_WAKEUP_BY_PAUSE |
| + | |- |
| + | | 12 |
| + | | COMMAND_WAKEUP_BY_CANCEL |
| + | |- |
| + | | 13 |
| + | | COMMAND_WAKEUP_BY_CANCELALL |
| + | |- |
| + | | 14 |
| + | | COMMAND_WAKEUP_BY_POWER_BUTTON_CLICK |
| + | |- |
| + | | 15 |
| + | | COMMAND_WAKEUP_TO_JUMP_HOME |
| + | |- |
| + | | 16 |
| + | | COMMAND_REQUEST_FOR_SYS_APPLET |
| + | |- |
| + | | 17 |
| + | | COMMAND_WAKEUP_TO_LAUNCH_APPLICATION |
| + | |- |
| + | | 65536 |
| + | | COMMAND_FINALIZE |
| |} | | |} |
| | | |
− | == WakeupState == | + | == AppletPreparationState == |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |
| ! Value | | ! Value |
| ! Description | | ! Description |
− | |-
| |
− | | -1
| |
− | | WAKEUP_BY_TIMEOUT
| |
| |- | | |- |
| | 0 | | | 0 |
− | | WAKEUP_SKIP | + | | NO_PREPARATION |
| |- | | |- |
| | 1 | | | 1 |
− | | WAKEUP_TO_START | + | | PREPARED_TO_LAUNCH_APP |
| |- | | |- |
| | 2 | | | 2 |
− | | WAKEUP_BY_EXIT | + | | PREPARED_TO_CLOSE_APP |
| |- | | |- |
| | 3 | | | 3 |
− | | WAKEUP_BY_PAUSE | + | | PREPARED_TO_FORCE_TO_CLOSE_APP |
| |- | | |- |
| | 4 | | | 4 |
− | | WAKEUP_BY_CANCEL | + | | PREPARED_TO_PRELOAD_APPLIB |
| |- | | |- |
| | 5 | | | 5 |
− | | WAKEUP_BY_CANCELALL | + | | PREPARED_TO_LAUNCH_APPLIB |
| |- | | |- |
| | 6 | | | 6 |
− | | WAKEUP_BY_POWER_BUTTON_CLICK | + | | PREPARED_TO_CLOSE_APPLIB |
| |- | | |- |
| | 7 | | | 7 |
− | | WAKEUP_TO_JUMP_HOME | + | | PREPARED_TO_LAUNCH_SYS |
| |- | | |- |
| | 8 | | | 8 |
− | | WAKEUP_TO_JUMP_APPLICATION | + | | PREPARED_TO_CLOSE_SYS |
| |- | | |- |
| | 9 | | | 9 |
− | | WAKEUP_TO_LAUNCH_APPLICATION | + | | PREPARED_TO_PRELOAD_SYSLIB |
− | |} | + | |- |
− | | + | | 10 |
− | == QueryReply ==
| + | | PREPARED_TO_LAUNCH_SYSLIB |
− | {| class="wikitable" border="1"
| + | |- |
| + | | 11 |
| + | | PREPARED_TO_CLOSE_SYSLIB |
| + | |- |
| + | | 12 |
| + | | PREPARED_TO_LAUNCH_RESIDENT |
| + | |- |
| + | | 13 |
| + | | PREPARED_TO_LEAVE_RESIDENT |
| + | |- |
| + | | 14 |
| + | | PREPARED_TO_DO_HOMEMENU |
| + | |- |
| + | | 15 |
| + | | PREPARED_TO_LEAVE_HOMEMENU |
| + | |- |
| + | | 16 |
| + | | PREPARED_TO_START_RESIDENT |
| |- | | |- |
− | ! Value
| + | | 17 |
− | ! Description
| + | | PREPARED_TO_DO_APP_JUMP |
| |- | | |- |
− | | 0 | + | | 18 |
− | | REPLY_REJECT | + | | PREPARED_TO_FORCE_TO_CLOSE_SYS |
| |- | | |- |
− | | 1 | + | | 19 |
− | | REPLY_ACCEPT | + | | PREPARED_TO_LAUNCH_OTHER_SYS |
| |- | | |- |
− | | 2 | + | | 20 |
− | | REPLY_LATER | + | | PREPARED_TO_JUMP_TO_APP |
| |} | | |} |
| | | |