Meta SDK2 Beta  2.7.0
Meta.Chord Class Reference

A set of keyboard keys that should be pressed simultaneously to perform some action. More...

Public Member Functions

 Chord ()
 
 Chord (KeyCode[] primaryKeys, Subchord[] modifierKeys)
 
bool IsPressed ()
 Are the primary keys and any modifier keys pressed? More...
 
bool GetUp ()
 If the keys are correctly down, returns true when a primary key is released. More...
 
bool GetDown ()
 Checks if the last primary key not down has been pressed down. At least one modifier key, if any are defined, must be down. More...
 

Properties

KeyCode [] PrimaryKeys [get]
 All keys in this set must be pressed More...
 
Subchord [] ModifierKeys [get]
 At least one modifier key must be pressed More...
 

Detailed Description

A set of keyboard keys that should be pressed simultaneously to perform some action.

Control-C: PrimaryKeys: KeyCode.C, ModifierKeys: KeyCode.LeftControl, KeyCode.RightControl

Constructor & Destructor Documentation

◆ Chord() [1/2]

Meta.Chord.Chord ( )
inline

◆ Chord() [2/2]

Meta.Chord.Chord ( KeyCode []  primaryKeys,
Subchord []  modifierKeys 
)
inline

Member Function Documentation

◆ GetDown()

bool Meta.Chord.GetDown ( )
inline

Checks if the last primary key not down has been pressed down. At least one modifier key, if any are defined, must be down.

Returns

◆ GetUp()

bool Meta.Chord.GetUp ( )
inline

If the keys are correctly down, returns true when a primary key is released.

Returns

◆ IsPressed()

bool Meta.Chord.IsPressed ( )
inline

Are the primary keys and any modifier keys pressed?

Returns
True if all primary keys and at least one modifier key (if any are defined) are pressed

Property Documentation

◆ ModifierKeys

Subchord [] Meta.Chord.ModifierKeys
get

At least one modifier key must be pressed

◆ PrimaryKeys

KeyCode [] Meta.Chord.PrimaryKeys
get

All keys in this set must be pressed