cancel
Showing results for 
Search instead for 
Did you mean: 

Simulator not detecting Hardware button clicked

franck23
Senior

Hi,

I have implemented a hardware button that changed the screen displayed.

It works fine when using the hardware.

I also want it to work with the simulator using the computer keyboard.

I think it is what the "Choose button key" in TouchGFX is for (correct me if I am wrong).

In the .touchgfx file I added the following:

"PhysicalButtons": [
      {
        "Key": 0,
        "Name": "PwrSwitch"
      }
    ],

Then in screen interaction:

0693W000007DUTqQAO.pngWhen running the simulator, I was hoping that by clicking on the computer keyboard "0" key, the interaction would be triggered. I tried both "0" key on the keyboard but nothing happens.

Please let me know if I am missing something.

Franck.

Config:

MCU: STM32H743

CubeMx: 6.1.1

CubeIDE: 1.5.1

Firmware Package: FW_H7 1.8.0

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief III

0 isnt key code , use ASCII "0" = 0x30 instead

View solution in original post

2 REPLIES 2
MM..1
Chief III

0 isnt key code , use ASCII "0" = 0x30 instead

franck23
Senior

That was it!

Thanks.