-
The standard circle lib sample 08-usbkeyboard works fine in my RPi 400. But when I essentially the same code in my circle-stdlib app, it does not work — depending on the details, it either locks up, or it just fails to ever find a keyboard. For example, I have this in code that's called every frame:
...and it periodically prints "Console: NO KBD", indicating that The 02-stdio-hello sample also worked fine on my machine, so there's nothing wrong with the hardware. So I'm thinking something in circle-stdlib is interfering with my attempt to get the keyboard device — maybe it's already been captured for use by stdio, or something? Any tips on what I need to do to make this GetDevice call succeed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It turns out my CStdlibAppStudio subclass (i.e. my kernel class) had overridden Initialize(), and failed to call the base-class method. Once I added |
Beta Was this translation helpful? Give feedback.
It turns out my CStdlibAppStudio subclass (i.e. my kernel class) had overridden Initialize(), and failed to call the base-class method.
Once I added
CStdlibAppStudio::Initialize();
to my own Initialize method, it worked!