Skip to main content
William chang
Associate III
January 16, 2018
Question

no description about GUI_JOYSTICK_StoreState(const GUI_PID_STATE * pState) function usage

  • January 16, 2018
  • 2 replies
  • 749 views
Posted on January 16, 2018 at 03:46

I found this function 'void GUI_JOYSTICK_StoreState(const GUI_PID_STATE * pState);' in GUI.h file which is STemWin library. But I can't find any information about it on STemWin manual. Can somebody explain it for me? 

#stemwin
This topic has been closed for replies.

2 replies

ST Technical Moderator
February 20, 2018
Posted on February 20, 2018 at 17:13

Hello,

The pointer input devices such as touch screen, mouse or joysticks calls the routine GUI_PID_StoreState.

This note is described in emWin user manual (page 1070) and GUI_PID_StoreState routine is explained.

Pointer input devices are devices such as mice, touch-screens and joysticks. Multiple pointer input devices can be used in a single application to enable simultaneous mouse/touch-screen/joystick use. Basically all a PID driver does is calling the routine GUI_PID_StoreState() whenever an event (such as a moved mouse, or a pressed touch screen) has been detected.

Best Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
William chang
Associate III
March 6, 2018
Posted on March 06, 2018 at 09:50

The original emWin manual doesn't have 

GUI_JOYSTICK_StoreState() this function. I found this function in ST project. I think it was added by ST.