From 0413702974a7984b06c1b2385de4814df2f1d93d Mon Sep 17 00:00:00 2001 From: Bertrand Martel Date: Mon, 9 Mar 2020 03:22:12 +0100 Subject: [PATCH] add bool accessor for windows --- include/braille.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/braille.h b/include/braille.h index b1106ef..83293f1 100644 --- a/include/braille.h +++ b/include/braille.h @@ -107,6 +107,11 @@ class MetecDriver { bool get() { return _btn_update; } void set(bool value) { _btn_update = value; } } + property bool btn_listen + { + bool get() { return _btn_listen; } + void set(bool value) { _btn_listen = value; } + } #else uint8_t btn_position; ButtonState btn_state; @@ -157,6 +162,7 @@ class MetecDriver { uint8_t _btn_position = 0; ButtonState _btn_state = ButtonState::Released; bool _btn_update; + bool _btn_listen; #endif };