Skip to content
Snippets Groups Projects
Commit 61373be8 authored by Jeremy White's avatar Jeremy White Committed by Frediano Ziglio
Browse files

Adjust the presentation of two byte scan codes.


The previous implementation worked strictly due to a bug which would
luckily generate roughly the right scan codes, although we would send
more codes than required.

For example, the old implementation would send 0xdf48e0 for 'up key down'
and '0xdfc8e0' for 'up key up'.  The prepended 0xdf is incorrect; the
correct values should be 0x48e0 and 0xc8e0.  Essentially, it stored
the bytes in reverse order and had a bug while flipping them.

This code stores them in the order we transmit them which simplifies
the code.

Signed-off-by: default avatarJeremy White <jwhite@codeweavers.com>
Acked-by: default avatarFrediano Ziglio <fziglio@redhat.com>
parent a14f8933
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment