00001 /* 00002 * PSP Software Development Kit - http://www.pspdev.org 00003 * ----------------------------------------------------------------------- 00004 * Licensed under the BSD license, see LICENSE in PSPSDK root for details. 00005 * 00006 * pspaudio.h - Prototypes for the sceHprm library. 00007 * 00008 * Copyright (c) 2005 Adresd 00009 * 00010 * $Id: psphprm.h 1095 2005-09-27 21:02:16Z jim $ 00011 */ 00012 #ifndef __HPRM_H__ 00013 #define __HPRM_H__ 00014 00015 #ifdef __cplusplus 00016 extern "C" { 00017 #endif 00018 00024 00026 enum PspHprmKeys 00027 { 00028 PSP_HPRM_PLAYPAUSE = 0x1, 00029 PSP_HPRM_FORWARD = 0x4, 00030 PSP_HPRM_BACK = 0x8, 00031 PSP_HPRM_VOL_UP = 0x10, 00032 PSP_HPRM_VOL_DOWN = 0x20, 00033 PSP_HPRM_HOLD = 0x80 00034 }; 00035 00044 int sceHprmPeekCurrentKey(u32 *key); 00045 00053 int sceHprmPeekLatch(u32 *latch); 00054 00062 int sceHprmReadLatch(u32 *latch); 00063 00069 int sceHprmIsHeadphoneExist(void); 00070 00076 int sceHprmIsRemoteExist(void); 00077 00083 int sceHprmIsMicrophoneExist(void); 00084 00085 00086 00089 #ifdef __cplusplus 00090 } 00091 #endif 00092 00093 #endif