KeyPlayerGui:
Filter:
KeyPlayer (extension) | Libraries > JITLib

KeyPlayerGui
ExtensionExtension

a simple gui for KeyPlayer

Description

KeyPlayerGui provides a window interface to KeyPlayer, see examples there.

The keys that have associated actions are shown colored in KeyPlayerGui.

Meta control commands available from alt-key shortcuts:

Notes:

Several aspects of this class could be made more flexible: supporting different display sizes, keyboard layouts, and ways of switching between several KeyPlayers may be useful. (current the useList options gives one choice.

Dragging and dropping actions could also be supported; not sure how to do that consistently with keyUp actions, retriggering, putting things on shifted keys, etc.

Maybe alt-1..9,0 could go to one of top ten KeyPlayers on buttons.

Class Methods

Class Variables

.colors

a list of colors used for the keys.

.keyboard

the list of characters the physical keyboard shows. Default is a Macbook Pro with US Extended key caps.

.initClass

.keyboardNoShift

the list of characters that will be printed when typed.

.keyboardShift

the list of characters that will be printed when typed while the keyboard shift key is pressed.

.lineOffsets

a list of offsets used for keyboard line layout/geometry.

Class Methods

.gui

Make a KeyPlayerGui for up to 10 KeyPlayers.

.new

make a new KeyPlayerGui for a keyplayer.

.initClass

...

Instance Methods

Instance Variables

.player

the KeyPlayer displayed.

GUI elements, visual aspects:

.w

.zone

.buttons

.drags

.listview

.font

.activeColor

.skipjack

Instance Methods

.front

GUI creation:

.makeWindow

.makeButtons

.makeDrags

.makeListView

.makeKey

GUI updating:

.updateAll

.updateDrags

.updateButtons

.runUpdate

.stopUpdate

Examples