Mercurial > hg > orthanc-stone
diff Framework/StoneEnumerations.h @ 327:8716176ff7f0 am-2
added support for arrow keys
author | am@osimis.io |
---|---|
date | Tue, 16 Oct 2018 15:25:21 +0200 |
parents | 9afafb192180 |
children | a7de01c8fd29 |
line wrap: on
line diff
--- a/Framework/StoneEnumerations.h Tue Oct 16 12:57:38 2018 +0200 +++ b/Framework/StoneEnumerations.h Tue Oct 16 15:25:21 2018 +0200 @@ -75,6 +75,17 @@ KeyboardModifiers_Alt = (1 << 2) }; + enum KeyboardKeys + { + KeyboardKeys_Generic = 0, + + // let's use the same ids as in javascript to avoid some conversion in WASM: https://css-tricks.com/snippets/javascript/javascript-keycodes/ + KeyboardKeys_Left = 37, + KeyboardKeys_Up = 38, + KeyboardKeys_Right = 39, + KeyboardKeys_Down = 40 + }; + enum SliceImageQuality { SliceImageQuality_FullPng, // smaller to transmit but longer to generate on Orthanc side (better choice when on low bandwidth)