vkf_viewer_key Interface

interface


Called by

interface~~vkf_viewer_key~~CalledByGraph interface~vkf_viewer_key vkf_viewer_key proc~key WindowProxy%key proc~key->interface~vkf_viewer_key

public function vkf_viewer_key(viewer, pressed, symbol, modified_symbol, modifier) bind(C, name="vkf_viewer_key")

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: viewer

viewer handle (vkf_viewer_create)

integer(kind=c_int), value :: pressed

1 for a press, 0 for a release

integer(kind=c_int), value :: symbol

the key's base symbol (unmodified)

integer(kind=c_int), value :: modified_symbol

the key's symbol with the modifiers applied ('V' with shift)

integer(kind=c_int), value :: modifier

the modifier keys held (vsg::KeyModifier mask)

Return Value integer(kind=c_int)

Description

A key press or release from the host's window, as VSG key symbols and modifiers (vsg/ui/KeyEvent.h: ASCII for printable keys, X11-style codes otherwise). Returns 0, or -1 on failure.