Skip to main content
franck23
Associate III
February 1, 2021
Solved

Simulator not detecting Hardware button clicked

  • February 1, 2021
  • 2 replies
  • 880 views

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

This topic has been closed for replies.
Best answer by MM..1

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

2 replies

MM..1
MM..1Best answer
Super User
February 1, 2021

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

franck23
franck23Author
Associate III
February 1, 2021

That was it!

Thanks.