PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspctrl_kernel.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspctrl_kernel.h - Prototypes for the sceCtrl_driver library.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9 * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10 * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11 *
12 */
13
14#ifndef __CTRL_KERNEL_H__
15#define __CTRL_KERNEL_H__
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
36void sceCtrl_driver_7CA723DC(unsigned int mask, unsigned type);
37
45int sceCtrl_driver_5E77BC8A(unsigned int mask);
46
57int sceCtrl_driver_5C56C779(int no, unsigned int mask, void (*cb)(int, int, void*), void *arg);
58
59/* Just define some random names for the functions to make them easier to use */
60#define sceCtrlSetButtonMasks sceCtrl_driver_7CA723DC
61#define sceCtrlGetButtonMask sceCtrl_driver_5E77BC8A
62#define sceCtrlRegisterButtonCallback sceCtrl_driver_5C56C779
63
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif
void sceCtrl_driver_7CA723DC(unsigned int mask, unsigned type)
Set the controller button masks.
int sceCtrl_driver_5E77BC8A(unsigned int mask)
Get button mask mode.
int sceCtrl_driver_5C56C779(int no, unsigned int mask, void(*cb)(int, int, void *), void *arg)
Setup a controller callback.
struct _uidControlBlock * type
Definition pspsysmem_kernel.h:2