/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / How to add clicking capability

Username:     
Password:     
             

Forum

# 1   2009-03-08 00:03:24 How to add clicking capability

wincent
Member
Registered: 2008-06-23
Posts: 19
Website

How to add clicking capability

Hello,

to add clicking capability to the application add the following lines to the file hw_config.c :

to line 138:

Code:

  static s16 Last_Shocked = 0;
  u8 Click = 0;

  if(pMEMS_Info->Shocked != Last_Shocked)
  {
    Click = 1;
    Last_Shocked = pMEMS_Info->Shocked;
  }

and then to the line 148 :

Code:

Mouse_Buffer[0] = Click;

Sincerely yours,

wincent

Offline

 

Board footer