PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libkbd.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16#ifndef __LIBKBD_H__
17#define __LIBKBD_H__
18
19#include <ps2kbd.h>
20
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
29int PS2KbdInit(void);
31int PS2KbdRead(char *key);
35int PS2KbdSetReadmode(u32 readMode);
37int PS2KbdSetBlockingMode(u32 readMode);
39int PS2KbdSetRepeatRate(u32 repeat);
41int PS2KbdSetLeds(u8 leds);
43int PS2KbdSetKeymap(PS2KbdKeyMap *keymaps);
45int PS2KbdSetCtrlmap(u8 *ctrlmap);
47int PS2KbdSetAltmap(u8 *altmap);
49int PS2KbdSetSpecialmap(u8 *special);
51int PS2KbdFlushBuffer(void);
53int PS2KbdResetKeymap(void);
55int PS2KbdClose(void);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* __LIBKBD_H__ */
int PS2KbdInit(void)
Definition libkbd.c:28
int PS2KbdSetKeymap(PS2KbdKeyMap *keymaps)
Definition libkbd.c:108
int PS2KbdFlushBuffer(void)
Definition libkbd.c:144
int PS2KbdSetSpecialmap(u8 *special)
Definition libkbd.c:135
int PS2KbdSetAltmap(u8 *altmap)
Definition libkbd.c:126
int PS2KbdReadRaw(PS2KbdRawKey *key)
Definition libkbd.c:60
int PS2KbdSetRepeatRate(u32 repeat)
Definition libkbd.c:90
int PS2KbdSetCtrlmap(u8 *ctrlmap)
Definition libkbd.c:117
int PS2KbdSetLeds(u8 leds)
Definition libkbd.c:99
int PS2KbdResetKeymap(void)
Definition libkbd.c:155
int PS2KbdRead(char *key)
Definition libkbd.c:50
int PS2KbdSetReadmode(u32 readMode)
Definition libkbd.c:70
int PS2KbdSetBlockingMode(u32 readMode)
Definition libkbd.c:80
int PS2KbdClose(void)
Definition libkbd.c:166