MCPcopy Create free account
hub / github.com/LMMS/lmms / setKeyState

Method setKeyState

src/core/Piano.cpp:91–99  ·  view source on GitHub ↗

! \brief Turn a key on or off * * \param key the key number to change * \param state the state to set the key to */

Source from the content-addressed store, hash-verified

89 * \param state the state to set the key to
90 */
91void Piano::setKeyState( int key, bool state )
92{
93 if( isValidKey( key ) )
94 {
95 m_pressedKeys[key] = state;
96
97 emit dataChanged();
98 }
99}
100
101
102

Callers 6

processOutEventMethod · 0.80
mousePressEventMethod · 0.80
mouseReleaseEventMethod · 0.80
mouseMoveEventMethod · 0.80
focusOutEventMethod · 0.80
focusOutEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected