Go to the source code of this file.
◆ sceCtrlGetButtonMask
◆ sceCtrlRegisterButtonCallback
◆ sceCtrlSetButtonMasks
◆ SceCtrlButtonMaskMode
◆ SceKernelButtonCallbackFunction
| typedef void(* SceKernelButtonCallbackFunction) (u32 cur_buttons, u32 last_buttons, void *opt) |
◆ SceCtrlButtonMaskMode
Button mask settings.
| Enumerator |
|---|
| SCE_CTRL_MASK_NO_MASK | No mask for the specified buttons.
Button input is normally recognized.
|
| SCE_CTRL_MASK_IGNORE_BUTTONS | The specified buttons are ignored, that means even if these buttons are pressed by the user they won't be shown as pressed internally.
You can only block user buttons for applications running in User Mode.
|
| SCE_CTRL_MASK_APPLY_BUTTONS | The specified buttons show up as being pressed, even if the user does not press them.
You can only turn ON user buttons for applications running in User Mode.
|
◆ sceCtrlGetButtonIntercept()
| u32 sceCtrlGetButtonIntercept |
( |
u32 | buttons | ) |
|
Get button mask mode.
- Parameters
-
| buttons | The buttons to check for. One or more buttons of SceCtrlButtons. |
- Returns
- The button mask mode for the given buttons. One of
SceCtrlButtonMaskMode.
◆ sceCtrlSetButtonIntercept()
| u32 sceCtrlSetButtonIntercept |
( |
u32 | buttons, |
|
|
u32 | mask_mode ) |
◆ sceCtrlSetSpecialButtonCallback()
Registers a button callback.
- Parameters
-
| slot | The slot used to register the callback. Between 0 - 3. |
| button_mask | Bitwise OR'ed button values which will be checked for being pressed. One or more buttons of SceCtrlButtons. |
| callback | A pointer to the callback function handling the button callbacks. |
| opt | Optional user argument. Passed to the callback function as its third argument. |
- Returns
- 0 on success, < 0 on error.