Basically what's going on is that I have my game that works on Windows and Android.
If I enter in an EditBox on Windows "=" it displays the equals sign without issues.
However, on Android it doesn't seem to find that I've entered the equals button on the virtual keyboard.
This happens to many keys, like: []{}=@#/* etc.
I've tried this to see if it's getting the key codes:
Code: Select all
for (int x = 0; x < KEY_KEY_CODES_COUNT; ++x)
if (keyIsDown[x])
print(x);
On Android, it gets most of the keys just fine, but the keys that aren't working on Android will print "0"
Is there a workaround to this issue or something I can do to fix it?
EDIT:
Similarly, this is printing "0" on Android with mentioned keys (like equals), while other keys like abcdefgh... are printing the correct key code
Code: Select all
bool MyEventReceiver::OnEvent(const SEvent& event)
{
if (event.EventType == irr::EET_KEY_INPUT_EVENT) {
char c[255];
sprintf(c, "Key Pressed: %d", event.KeyInput.Key);
Game::logger->log(c);
}
...
}