The keyboard driver's processor overhead made the camera preview look jerky. At PalmOne's request, I added code to unhook/hook the keyboard driver when it receives the kCamSliderNotifyEvent. I think I remember a bug (that I fixed) related to this.

First thing is to make sure the current keyboard driver is installed. You can get the most current from ThinkOutside.com (the makers of the keyboard).


If the Driver sees this event ('kCamSliderNotifyEvent') it checks to see if the camera slider is present and then looks at:
FtrGet(kCamSliderCreator, kCamSliderFtrFlagsNum, &val)
to see if it should hook/unhook the event processing.


It is possible that a your code causes this event (opening the camera lib?) and does not 'undo' it. It is possible this event is generated when the camera lib is opened, and not when the slider is opened. You may need to set the Ftr / generate the event 'manually' if the camera lib is not doing it correctly for all sequences. [Okay, it is also /possible/ <grin>, the the KB driver is not doing things correctly.]

I also hook/unhook for HotSync operations. There might still be a sequence of events that you could do relating to powering on, (un)docking, resetting while docked, full moon, etc that leave the Keyboard driver unhooked, but you should be able to put it in the cradle for a moment, pull it out again and have it working.

Manually opening & closing the camera slider should 'correct' the keyboard operation after your code is done with the camera lib.

I hope this helps.

-E
Regis St-Gelais wrote:
Hi fellow programmers!

I have an application that uses the CameraLib library.
I have a client that use the Palm wireless keyboard on a Zire 71

As soon as my app load the CameraLib library, the wireless keyboard stops
working. Once this is done, the keyboard does not work in any application
(notepad for example)  until I do a soft reset.
If I remove the SysLibLoad(kCamLibType, kCamLibCreator, &refNum);  and
CamLibOpen(refNum); code from my app, the keyboard works perfectly.

Any clues????



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to