1
Feature requests / iOS: Keyboard functions not implemented
« on: August 13, 2017, 04:53:41 am »
For iOS, Window/iOS/InputImpl.mm's isKeyPressed function always returns false, with a "not applicable" comment. However, since the iOS Simulator in Xcode lets you use the hardware keyboard that's plugged in to your Mac, it would be useful if this function worked properly for testing purposes. Most people programming with SFML for iOS are likely to be using the simulator to test, and it's very useful to test things by simply binding them to a keyboard key instead of setting an action to a temporary gui button or touch movement. On top of this, the simulator natively has an option that enables the hardware keyboard, which makes it confusing if SFML's just doesn't seem to be working for keyboard input when testing for iOS. On top of this, if I'm not mistaken, these are the functions we would want to use if an external keyboard was plugged in to an actual iOS device (like a wireless keyboard with an iPad). I think it would be a good idea to enable the hardware keyboard for iOS.