TouchArea: add the pointer-event callback

... instead of `pressed-changed`

This allows to see what mouse button was pressed.

Closes #535
This commit is contained in:
Olivier Goffart 2021-10-04 13:02:05 +02:00 committed by Olivier Goffart
parent 137ad32886
commit 2716e4b4dd
21 changed files with 200 additions and 59 deletions

View file

@ -61,6 +61,7 @@ namespace private_api {
using ItemTreeNode = cbindgen_private::ItemTreeNode<uint8_t>;
using cbindgen_private::KeyboardModifiers;
using cbindgen_private::KeyEvent;
using cbindgen_private::PointerEvent;
/// Internal function that checks that the API that must be called from the main
/// thread is indeed called from the main thread, or abort the program otherwise