|
8.
|
|
|
Keboard keysyms can also be the symbolic name for the key. This can be any of the K\_ constants taken from pygame.constants. This type of keysym looks like "K\_BACKSPACE", "K\_RETURN", and "K\_TAB"; a full list of this kind of keysyms may be found `here <http://www.pygame.org/docs/ref/key.html>`_.
|
|
|
|
Клавишные символы клавиатуры также могут быть символические имена клавиш. Это может быть любая из K\_ констант из pygame.constants. Такой тип клавишного символа выглядит как "K\_BACKSPACE", "K\_RETURN" и "K\_TAB". Полный список таких символов можно найти `здесь <http://www.pygame.org/docs/ref/key.html>`_.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/keymap.rst:35
|
|
9.
|
|
|
Keyboard keysyms may be preceded by the prefixes "alt\_", "meta\_", "shift\_", or "noshift\_". The first three of these require the corresponding modifier key to be pressed. (Meta is present on Linux keyboards, and corresponds to the Command key on a Mac.) "noshift\_" requires that the shift key not be pressed.
|
|
|
|
Клавиатурные символы могут иметь приставки "alt\_", "meta\_", "shift\_" или "noshift\_". Первые три требуют, чтобы соответствующий модификатор был нажат. (Meta присутствует на Linux-клавиатурах и соответствует клавише Command на Mac.) "noshift\_" требует, чтобы клавиша shift не была нажата.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/keymap.rst:40
|
|
10.
|
|
|
To change a binding, update the appropriate list in :var:`config.keymap`. The following code adds the 't' key to the list of keys that dismiss a say statement, and removes the space key from that list. ::
|
|
|
|
Чтобы изменить назначение клавиши, обновите соответствующий список в :var:`config.keymap`. Следующий код добавляет клавишу 't' к списку клавиш, которые завершают оператор say, и убирает из него клавишу пробел. ::
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/keymap.rst:45
|
|
11.
|
|
|
The default keymap is contained inside the python code implementing Ren'Py, and as of version 6.16 is as follows::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/keymap.rst:53
|