Bug 9107

Summary: hid-input.c lacks key codes for microsoft presenter mouse 8000 in presentation mode
Product: Drivers Reporter: Alan Campbell (alan.campbell)
Component: Input DevicesAssignee: drivers_input-devices
Status: CLOSED CODE_FIX    
Severity: normal CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.27 Subsystem:
Regression: No Bisected commit-id:

Description Alan Campbell 2007-10-01 09:59:34 UTC
Most recent kernel where this bug did not occur: None
Distribution:ubuntu7.04
Hardware Environment:microsoft wireless notebook presenter mouse 8000
Software Environment:
Problem Description:
presentation mode buttons don't work due to missing mapping in hid-input.c

Problem Fix:
add following mapping in case HID_UP_MSVENDOR in hid-input.c


                case HID_UP_MSVENDOR:
                        switch (usage->hid & HID_USAGE) {
                                case 0x000: goto ignore;
                                case 0xfd08: map_key_clear(KEY_PAGEDOWN);       break;
                                case 0xfd09: map_key_clear(KEY_PAGEUP);         break;
                                case 0xfd0b: map_key_clear(KEY_PLAYPAUSE);      break;
                                default:    goto ignore;
                        }
                        break;



Steps to reproduce: