For development, I am trying to simulate a mouse click on emWIn Windows simulation.
It works fine on the embedded device, but will make it much easier for development if I can simulate on my pC.
I tried this, but it does not work.
Display All
Any idea how to accomplish this?
Thanks.
It works fine on the embedded device, but will make it much easier for development if I can simulate on my pC.
I tried this, but it does not work.
Source Code
- int xpos_ = 0,ypos_ = 0;
- int GUI_TOUCH_X_MeasureX(void) {
- return xpos_;
- }
- int GUI_TOUCH_X_MeasureY(void) {
- return ypos_;
- }
- void doMouseCmd()
- {
- xpos_ = getXpos();
- ypos_ = getYpos();
- printf("Processing Mouse cmmd x= %d y = %d\n\n\n",xpos_,ypos_);
- GUI_TOUCH_Exec(); // get x
- GUI_TOUCH_Exec(); // get y
- }
Thanks.