23 #include <linux/device.h>
24 #include <linux/hid.h>
25 #include <linux/module.h>
29 static __u8 ps3remote_rdesc[] = {
89 static const unsigned int ps3remote_keymap_joypad_buttons[] = {
109 static const unsigned int ps3remote_keymap_remote_buttons[] = {
148 *rsize =
sizeof(ps3remote_rdesc);
149 return ps3remote_rdesc;
154 unsigned long **
bit,
int *
max)
163 if (key >=
ARRAY_SIZE(ps3remote_keymap_joypad_buttons))
166 key = ps3remote_keymap_joypad_buttons[
key];
171 if (key >=
ARRAY_SIZE(ps3remote_keymap_remote_buttons))
174 key = ps3remote_keymap_remote_buttons[
key];
182 hid_map_usage_clear(hi, usage, bit, max,
EV_KEY, key);
196 .name =
"ps3_remote",
197 .id_table = ps3remote_devices,
198 .report_fixup = ps3remote_fixup,
199 .input_mapping = ps3remote_mapping,
202 static int __init ps3remote_init(
void)
207 static void __exit ps3remote_exit(
void)