Re: [Qemu-devel] [PATCH v2] ui/cocoa.m: prevent stuck key situation

2015-09-23 Thread Peter Maydell
On 23 September 2015 at 17:44, Programmingkid wrote: > > On Sep 23, 2015, at 8:34 PM, Peter Maydell wrote: >>> + */ >>> +- (void) raiseAllKeys >>> +{ >>> +int index; >>> +const int max_index = 220; /* This is the highest value key */ >> >> No, you need to use ARRAY_SIZE. > > I did use it,

Re: [Qemu-devel] [PATCH v2] ui/cocoa.m: prevent stuck key situation

2015-09-23 Thread Programmingkid
On Sep 23, 2015, at 8:34 PM, Peter Maydell wrote: > On 23 September 2015 at 17:17, Programmingkid > wrote: >> When the user puts QEMU in the background while holding >> down a key, QEMU will not receive the keyup event when >> the user lets go of the key. When the user goes back to >> QEMU, QEM

Re: [Qemu-devel] [PATCH v2] ui/cocoa.m: prevent stuck key situation

2015-09-23 Thread Peter Maydell
On 23 September 2015 at 17:17, Programmingkid wrote: > When the user puts QEMU in the background while holding > down a key, QEMU will not receive the keyup event when > the user lets go of the key. When the user goes back to > QEMU, QEMU will think the key is still down causing > stuck key sympto