Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: iOS: Keyboard functions not implemented  (Read 2558 times)

0 Members and 1 Guest are viewing this topic.

KRMisha

  • Newbie
  • *
  • Posts: 15
    • View Profile
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.
« Last Edit: August 13, 2017, 04:57:29 am by KRMisha »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: iOS: Keyboard functions not implemented
« Reply #1 on: August 20, 2017, 03:49:58 pm »
Seems like a fair reasoning. Wanna implement them?  ;)
SFML / OS X developer