Jump to content

Nikolay

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Nikolay

  1. ugfx_2.7\drivers\multiple\Win32\gdisp_lld_Win32.c

    Only this file fits your description. In this there is function

    void gfxEmulatorMouseInject(GDisplay *g, uint16_t buttons, coord_t x, coord_t y)

    But don't  example how to use it. In particular how to get GDisplay*g in main. And there is no use of a timer.

    For example in STEmWin there are function 

    GUI_PID_STATE ts_state = {TSC_data.x, TSC_data.y, TSC_data.touchState, LAYER_0};
    GUI_TOUCH_StoreStateEx(&ts_state);

    simple and understandable

    When this function is called, the GUI react

  2. And I want don't use the timer in function _gmouseInitDriver. Is it possible?

    Quote

    // Ensure the Poll timer is started
        if (!gtimerIsActive(&MouseTimer))
            gtimerStart(&MouseTimer, MousePoll, 0, TRUE, GINPUT_MOUSE_POLL_PERIOD);

    Maybe create function like "put_mouse_data_in_ginput"? Sometimes the timer is redundant and spends resources

  3. I have a driver for stmpe811. This is based on using i2c interrupts of stm32 (RXNE, ADDR, SB..). My function reading look as start exchange, wait and handled some interrupts. And at the end I get XY coordinates in interrupt's handler.
    How can I put this value in gwin?

    I see stmpe811 driver, but I don't understand how embed my read function, because uGWIN is a initiate gets of coordinates but i need backward.

×
×
  • Create New...