hid.c (3d861a01093f8eedfac9889746ccafcfd32039b7) hid.c (7fb1cf1606c78c9d5b538f29176fd5a101726a9d)
1/*
2 * QEMU HID devices
3 *
4 * Copyright (c) 2005 Fabrice Bellard
5 * Copyright (c) 2007 OpenMoko, Inc. (andrew@openedhand.com)
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 94 unchanged lines hidden (view full) ---

103 } else {
104 hid_del_idle_timer(hs);
105 }
106}
107
108static void hid_pointer_event(DeviceState *dev, QemuConsole *src,
109 InputEvent *evt)
110{
1/*
2 * QEMU HID devices
3 *
4 * Copyright (c) 2005 Fabrice Bellard
5 * Copyright (c) 2007 OpenMoko, Inc. (andrew@openedhand.com)
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 94 unchanged lines hidden (view full) ---

103 } else {
104 hid_del_idle_timer(hs);
105 }
106}
107
108static void hid_pointer_event(DeviceState *dev, QemuConsole *src,
109 InputEvent *evt)
110{
111 static const int bmap[INPUT_BUTTON_MAX] = {
111 static const int bmap[INPUT_BUTTON__MAX] = {
112 [INPUT_BUTTON_LEFT] = 0x01,
113 [INPUT_BUTTON_RIGHT] = 0x02,
114 [INPUT_BUTTON_MIDDLE] = 0x04,
115 };
116 HIDState *hs = (HIDState *)dev;
117 HIDPointerEvent *e;
118
119 assert(hs->n < QUEUE_LENGTH);

--- 492 unchanged lines hidden ---
112 [INPUT_BUTTON_LEFT] = 0x01,
113 [INPUT_BUTTON_RIGHT] = 0x02,
114 [INPUT_BUTTON_MIDDLE] = 0x04,
115 };
116 HIDState *hs = (HIDState *)dev;
117 HIDPointerEvent *e;
118
119 assert(hs->n < QUEUE_LENGTH);

--- 492 unchanged lines hidden ---