MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / SetCurrentButton

Method SetCurrentButton

src/libcec/CECClient.cpp:1160–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158}
1159
1160void CCECClient::SetCurrentButton(const cec_user_control_code iButtonCode)
1161{
1162 // push a keypress to the buffer with 0 duration and another with the duration set when released
1163 cec_keypress key;
1164 key.duration = 0;
1165 key.keycode = iButtonCode;
1166
1167 LIB_CEC->AddLog(CEC_LOG_DEBUG, "SetCurrentButton %s (%1x) D:%dms cur:%lx", ToString(key.keycode), key.keycode, key.duration);
1168 AddKey(key);
1169}
1170
1171uint16_t CCECClient::CheckKeypressTimeout(void)
1172{

Callers 2

Calls 2

ToStringFunction · 0.85
AddLogMethod · 0.45

Tested by

no test coverage detected