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 1480 2005-11-25 16:10:18Z mrbrown $ 00011 */ 00012 #ifndef __HPRM_H__ 00013 #define __HPRM_H__ 00014 00015 #include <psptypes.h> 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00026 00028 enum PspHprmKeys 00029 { 00030 PSP_HPRM_PLAYPAUSE = 0x1, 00031 PSP_HPRM_FORWARD = 0x4, 00032 PSP_HPRM_BACK = 0x8, 00033 PSP_HPRM_VOL_UP = 0x10, 00034 PSP_HPRM_VOL_DOWN = 0x20, 00035 PSP_HPRM_HOLD = 0x80 00036 }; 00037 00046 int sceHprmPeekCurrentKey(u32 *key); 00047 00055 int sceHprmPeekLatch(u32 *latch); 00056 00064 int sceHprmReadLatch(u32 *latch); 00065 00071 int sceHprmIsHeadphoneExist(void); 00072 00078 int sceHprmIsRemoteExist(void); 00079 00085 int sceHprmIsMicrophoneExist(void); 00086 00087 00088 00091 #ifdef __cplusplus 00092 } 00093 #endif 00094 00095 #endif