BB10 WW Native Extension - events not firing

With aid spotting my stupid mistake earlier this week I've got an event loop in place

The actual event handling code is basically ripped from the documentation but events never actually happen meaning I can't send them back to the HTML page for processing

getEvents() is called from the thread's controlling function in a continuous loop - this allows the possibility of callbacks also being handled, the getEvent uses a 100ms timeout to allow this functionality (only one extra thread per Native Extension allowed).

Immediately after getting the event I've got a little hack that increases the height value by 1 returned by community.VKeyboard.VKgetHeight() - just so I can see where it's getting to. If this line is moved down one line inside the if(event) { .... } it never gets called, where it is caused a 100ms incremement as expected.

i.e. bps_get_events() is never returning an event of any kind

This is (almost) exactly the code flow in every example I can find but, as I say, events = never

Re: BB10 WW Native Extension - events not firing

To use the BPS library in your app, you should add it to your project in the QNX Momentics IDE by using the Add Library Wizard. Right-click your project and click Configure > Add Library. Select the Standard BlackBerry platform library option, and then select the BlackBerry Platform Services check box (in the Platform section).