Skip to content

Libcec fixes: account for opcode and fix enter button loop in sendNextKey

Aditya Mehra requested to merge work/libcec-fixes-1 into master
  • Libcec sends opcode separately that defines when a key has been pressed and when a key has been released before sending the key code always, account for this and emit a key press only once on the key pressed event, do not wait for release event as that can be delayed by 500ms as per libcec implementation which can cause an endless pressed button event.

  • Fixes sendNextKey looping on enter key, enter key code is generally 0, so waiting in loop until caught code is not Null / False fails when enter key emits 0, rather have it store a negative int and only use the actually boolean for catching and sending the event, also make sure that rest of the function is not executed when in catch mode

Merge request reports