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

Method TransmitKeypress

src/libcec/implementations/CECCommandHandler.cpp:1197–1204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1195}
1196
1197bool CCECCommandHandler::TransmitKeypress(const cec_logical_address iInitiator, const cec_logical_address iDestination, cec_user_control_code key, bool bWait /* = true */)
1198{
1199 cec_command command;
1200 cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_USER_CONTROL_PRESSED);
1201 command.parameters.PushBack((uint8_t)key);
1202
1203 return Transmit(command, !bWait, false);
1204}
1205
1206bool CCECCommandHandler::TransmitKeyRelease(const cec_logical_address iInitiator, const cec_logical_address iDestination, bool bWait /* = true */)
1207{

Callers

nothing calls this directly

Calls 1

PushBackMethod · 0.45

Tested by

no test coverage detected