749 views
in Platform Packages by
Hi Team,

We are using Raspberry Pi 3 board, We have created a Sample GUI using Embedded wizard 9.0 trial version.

We have loaded our sample application into raspberry Pi and tried with touch and key board inputs separately. Those are working fine.

But, now we want to read both the input events simultaneously in our application.

Only either of input (touch or keyboard event) is processed. Other input event is not hadled by our application.

If we run same application in embeded wizard itself, it working with both input events perfectely.

Kindly help us to resolve this issue.

 

Thanks in Advance.

1 Answer

0 votes
by

Hello,

the main loop that is provided within the Raspberry Pi Build Environment is already prepared to handle touch events and keyboard inputs (via SSH connection).

This means, from the main loop and from Embedded Wizard GUI application, everything is available to handel both event types.

If you want to change the source of touch or key events, please adapt the initialization accordingly (e.g. /dev/input/event1 instead of /dev/input/event0).

Best regards,

Manfred.

by
Hi Manfred,

Thanks for your reply.

We will try to connect through SSH and check.

But i have below queries.

1. We are not using SSH connection,we have connected USB Keyboard to Raspberry Pi board directly. Will that create any problem?

because we have checked in main.c TermInit() function header description that this function will initiate the console to receive the key input when any other input is not available.

2. dev/input/event0 is for touch input and for keyboard input its initialized through TermInit(). Is this understanding correct?

 

Best Regards,

Chaitra
by

Hi Chaitra,

please consider the intialization of keyboard / touch only as a template - feel free to adapt it according your needs.

As far as I know, as soon as you connect a keyboard via USB, the touch events are no more received via /dev/input/event0 - it is necessary to change it to /dev/input/event1 or 2. Please have a look the article How to enable the touch sensor in the example for Raspberry Pi 3 board.

Best regards,

Manfred.

 

by
Hi Manfred,

Its working fine now.

Thanks for your support.

 

Regards,

Chaitra

Embedded Wizard Website | Privacy Policy | Imprint

...