Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I came across few problems, can you plz help out from these?

1. I Don't need to close my app on pressing END key, rather I have to Do some other processing...

2. I need to get brew SW version number in my app, also chipset number, serial number & MEID no. etc.. So how to get these info.

3. How to get long key press event..

Thanks
-Kamal

1. See you other thread. I replied.
2. Use ISHELL_GetDeviceInfoEx() & AEEDeviceItem. See API reference.
3. EVT_KEY_HELD

1. See you other thread. I replied.
2. Use ISHELL_GetDeviceInfoEx() & AEEDeviceItem. See API reference.
3. EVT_KEY_HELD

Thanks Man

Thanks Man

Hi Atul,
EVT_KEY_HELD is not defined in AEEEvent.h
regarding KEY we have only these events...
// Key Events
#define EVT_KEY
#define EVT_KEY_PRESS
#define EVT_KEY_RELEASE
#define EVT_CHAR
#define EVT_UPDATECHAR
// key filtering/hook events.
#define EVT_KEY_HOOK
#define EVT_KEY_HOOK_PRESS
#define EVT_KEY_HOOK_RELEASE
Any other soultion...

Hi Atul,
EVT_KEY_HELD is not defined in AEEEvent.h
regarding KEY we have only these events...
// Key Events
#define EVT_KEY
#define EVT_KEY_PRESS
#define EVT_KEY_RELEASE
#define EVT_CHAR
#define EVT_UPDATECHAR
// key filtering/hook events.
#define EVT_KEY_HOOK
#define EVT_KEY_HOOK_PRESS
#define EVT_KEY_HOOK_RELEASE
Any other soultion...

Sorry, I guess KEY_HELD event is removed now. You can use KB_AUTOREPEAT.
Stating from API reference:
This is a modifier flag for key events. The dwParam parameter of key events will have this bit mask flag set when the key event is generated due to a continuous key press. In this case as the key is continuously pressed BREW does not receive the key release event (from the OEM layer) and hence the EVT_KEY is generated repeatedly from BREW layer based on a autorepeat timer.
Key events are auto-repeated starting KB_AUTOREPEAT_START milliseconds after the initial EVT_KEY is generated. The app will then start receiving EVT_KEY with the KB_AUTOREPEAT bit set every KB_AUTOREPEAT_RATE milliseconds.

Sorry, I guess KEY_HELD event is removed now. You can use KB_AUTOREPEAT.
Stating from API reference:
This is a modifier flag for key events. The dwParam parameter of key events will have this bit mask flag set when the key event is generated due to a continuous key press. In this case as the key is continuously pressed BREW does not receive the key release event (from the OEM layer) and hence the EVT_KEY is generated repeatedly from BREW layer based on a autorepeat timer.
Key events are auto-repeated starting KB_AUTOREPEAT_START milliseconds after the initial EVT_KEY is generated. The app will then start receiving EVT_KEY with the KB_AUTOREPEAT bit set every KB_AUTOREPEAT_RATE milliseconds.

adhudase;81884 wrote: ... Key events are auto-repeated starting KB_AUTOREPEAT_START milliseconds after the initial EVT_KEY is generated. The app will then start receiving EVT_KEY with the KB_AUTOREPEAT bit set every KB_AUTOREPEAT_RATE milliseconds.
Hi Atul, I tried modifying KB_AUTOREPEAT_START from 1500 to 100 in aeevcodes.h but there is still a long delay after receiving the initial EVT_KEY. Do you know what values I should change to remove this delay?
I also changed KB_AUTOREPEAT_RATE value from 100 to 3000, but there was no effect on long key presses.
The function is executed on every EVT_KEY.
case EVT_KEY:
function();
break;
Please advise. I'm very new to brew. I'm using brew 3.1.5.
Thanks and best regards:)

adhudase;81884 wrote: ... Key events are auto-repeated starting KB_AUTOREPEAT_START milliseconds after the initial EVT_KEY is generated. The app will then start receiving EVT_KEY with the KB_AUTOREPEAT bit set every KB_AUTOREPEAT_RATE milliseconds.
Hi Atul, I tried modifying KB_AUTOREPEAT_START from 1500 to 100 in aeevcodes.h but there is still a long delay after receiving the initial EVT_KEY. Do you know what values I should change to remove this delay?
I also changed KB_AUTOREPEAT_RATE value from 100 to 3000, but there was no effect on long key presses.
The function is executed on every EVT_KEY.
case EVT_KEY:
function();
break;
Please advise. I'm very new to brew. I'm using brew 3.1.5.
Thanks and best regards:)