On 14 March 2016 at 23:06, Programmingkid <programmingk...@gmail.com> wrote: > On Mar 13, 2016, at 11:40 AM, Peter Maydell wrote: >> Also, you need to handle the power-key key-release >> scancode; as far as I can tell (by looking for info via >> google about the ADB protocol) power-key-down is >> 0x7f 0x7f, and power-key-up is 0xff 0xff. (This is >> kind of weird and suggests we should just take option >> (a) and special case the power key completely.) > > The power-key-up (break) keycode is 0xff 0xff? Could you send me your > source for this information?
https://developer.apple.com/legacy/library/technotes/hw/hw_01.html (section "Apple Keyboard Protocol"). Power-key is a weird one both for key-up and key-down. thanks -- PMM