Hello team,
Now , i have a problem.
I tried to use hardbutton to change what I needed .
if ( IsHardButtonDown )
peq_gain_1++;
else
peq_gain_1 = 0;
if ( DeviceObject == 0 )
return 0;
#ifdef _ApplicationDeviceClass__Updatepeq_gain_1_
ApplicationDeviceClass__Updatepeq_gain_1( DeviceObject, (XInt32)peq_gain_1 );
#endif
It can use userbutton control the peq_gain_1, State increase 1 .
My question: if i want to use keyboard ("S") instead of hardbutton,and I split the access button into two functions(EwBspGetCharacter() and EwBspReadCharacter()),it can useful for my project, My code is as follows :
if ( EwBspReadCharacter()==0x53 )
peq_gain_1++;
else
peq_gain_1 = 0;
if ( DeviceObject == 0 )
return 0;
#ifdef _ApplicationDeviceClass__Updatepeq_gain_1_
ApplicationDeviceClass__Updatepeq_gain_1( DeviceObject, (XInt32)peq_gain_1 );
#endif
So,Where am I wrong ?Causes the "S" key to be pressed to be out of control.
Best regards,
Tonny