7#ifdef USE_VNC_TOUCHSCREEN
76#ifdef USE_VNC_TOUCHSCREEN
94#ifdef USE_VNC_TOUCHSCREEN
104 void setup()
override;
105 void loop()
override;
165 void draw_row_(uint16_t
x, uint16_t
y, uint16_t
count,
const uint8_t *pixels);
166 void fill_tile_(uint8_t
x, uint8_t
y, uint8_t w, uint8_t
h,
const uint8_t *pixel);
169 bool send_(
const uint8_t *data,
size_t len);
177#ifdef USE_VNC_TOUCHSCREEN
248#ifdef USE_VNC_TOUCHSCREEN
296#ifdef USE_VNC_TOUCHSCREEN
Helper class to request loop() to be called as fast as possible.
A reconnecting TCP stream driven from loop().
void set_reconnect_interval(uint32_t ms)
void set_port(uint16_t port)
void set_host(const char *host)
void register_listener(TouchListener *listener)
RFB (VNC) client that draws the remote framebuffer into a display.
static constexpr size_t KEY_EVENT_SIZE
LazyCallbackManager< void()> disconnect_callback_
void disconnect()
Close the session and stop retrying until connect().
VncFailure lost_failure_() const
bool select_security_(uint8_t type)
void set_auth_key(const uint8_t *key)
8 bytes, already bit-reversed for VNC, may live in PROGMEM.
uint8_t tile_[TILE_BUFFER_SIZE]
static constexpr uint32_t INPUT_BOOST_MS
uint32_t update_start_bytes_
static constexpr size_t POINTER_EVENT_SIZE
static constexpr size_t TILE_BUFFER_SIZE
uint32_t first_change_ms_
LazyCallbackManager< void()> connect_callback_
void send_key(uint32_t keysym, VncKeyAction action)
float get_setup_priority() const override
void session_lost_(uint32_t now)
uint32_t max_update_delay_ms_
void forget_tiles_(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
VncParse fail_(VncFailure failure, const LogString *reason)
uint32_t update_start_ms_
void handle_touch_(uint16_t x, uint16_t y)
Touch input in display coordinates.
display::ColorBitness bitness_
void set_max_update_delay(uint32_t ms)
void type_text(const std::string &text)
display::Display * display_
socket::TcpClientLink link_
const uint8_t * auth_key_
void draw_row_(uint16_t x, uint16_t y, uint16_t count, const uint8_t *pixels)
bool is_connected() const
void dump_config() override
bool send_(const uint8_t *data, size_t len)
bool start_session_(uint32_t now)
void refresh()
Ask the server for the whole screen again.
uint32_t session_start_ms_
HighFrequencyLoopRequester high_freq_
uint32_t last_request_ms_
void connect()
Retry now, also after an authentication failure or disconnect().
void clear_link_warning_()
void register_touchscreen(touchscreen::Touchscreen *touchscreen)
bool has_auth_key_() const
void add_on_disconnect_callback(F &&callback)
void service_rx_(uint32_t now)
void type_text(const char *text, size_t len)
uint32_t tile_hash_() const
bool send_input_(const uint8_t *msg, size_t len, bool release)
bool request_outstanding_
void start_handshake_(uint32_t now)
static constexpr size_t RX_BUFFER_SIZE
void set_port(uint16_t port)
void session_end_(uint32_t now, VncFailure failure, const LogString *reason)
void connect_step_(uint32_t now)
VncPixelFormat pixel_format_
VncFailure reason_failure_
static constexpr size_t MAX_PENDING_RELEASES
bool budget_exhausted_() const
void set_pixel_format(VncPixelFormat format)
uint8_t pending_[MAX_PENDING_RELEASES][KEY_EVENT_SIZE]
bool send_pointer(uint16_t x, uint16_t y, uint8_t buttons)
bool send_key_event_(uint32_t keysym, VncKeyAction action)
void set_reconnect_interval(uint32_t ms)
void set_update_delay(uint32_t ms)
void on_shutdown() override
bool send_update_request_(bool incremental, uint32_t now)
VncClient(display::Display *display, bool big_endian=false)
void schedule_retry_(uint32_t now, VncFailure failure, const LogString *reason, bool was_running)
void skip_(uint32_t count, VncStep next)
void add_on_connect_callback(F &&callback)
void touch(touchscreen::TouchPoint tp) override
void set_host(const char *host)
uint8_t rx_[RX_BUFFER_SIZE]
uint32_t update_delay_ms_
void fill_tile_(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *pixel)
constexpr float AFTER_WIFI
For components that should be initialized after WiFi is connected.
std::vector< TouchPoint > TouchPoints_t
@ VNC_FAILURE_AUTH_AMBIGUOUS
@ VNC_PIXEL_FORMAT_RGB565
@ VNC_PIXEL_FORMAT_RGB332
@ VNC_STEP_SECURITY_COUNT
@ VNC_STEP_SECURITY_TYPE_33
@ VNC_STEP_SECURITY_RESULT