Просмотр исходного кода

create wipdocs branch + enum Key docs

abakobo 7 лет назад
Родитель
Сommit
b9c09757bc
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      modules/mojo/input/keycodes.monkey2

+ 3 - 2
modules/mojo/input/keycodes.monkey2

@@ -3,11 +3,12 @@ Namespace mojo.input
 
 
 #rem monkeydoc Key codes.
 #rem monkeydoc Key codes.
 
 
-By default, key codes refer to 'virtual' keys. For example, `KEY_W` refers to the key with 'W' printed on it. However, this key may be not
+By default, key codes refer to 'virtual' keys. For example, `Key.W` refers to the key with 'W' printed on it. However, this key may be not
 be in the same physical location on all users' keyboards, due to OS language and keyboard settings.
 be in the same physical location on all users' keyboards, due to OS language and keyboard settings.
 
 
 To deal with this, mojo also provides support for 'raw' keys. A raw key code is simply a virtual key code 'or'ed with the special key code
 To deal with this, mojo also provides support for 'raw' keys. A raw key code is simply a virtual key code 'or'ed with the special key code
-`Key.Raw`.
+`Key.Raw`. For example, 'Key.Q|Key.Raw' refers to the key with 'Q' printed on it on a QWERTY keyboard. `Key.Raw` is to be used with the
+[[Keboard]] Class only. For example `Keyboard.KeyPressed(Key.A|Key.Raw)`.
 
 
 A raw key represents the physical location of a key on US keyboards. For example, `Key.Q|Key.Raw` indicates the key at the top left of the
 A raw key represents the physical location of a key on US keyboards. For example, `Key.Q|Key.Raw` indicates the key at the top left of the
 'qwerty' (or 'azerty' etc) keys regardless of the current OS settings.
 'qwerty' (or 'azerty' etc) keys regardless of the current OS settings.