Author Topic: Touch interface on PC?  (Read 2953 times)

Offline drbunji

  • Squaddie
  • *
  • Posts: 1
    • View Profile
Touch interface on PC?
« on: September 28, 2017, 03:04:51 pm »
Hey guys, I've got one of those laptops that turn into a tablet, and i'd like to know if theres any way to get the PC version of openxcom to use the same touch interface as the android version?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Touch interface on PC?
« Reply #1 on: September 28, 2017, 03:46:53 pm »
Yes and no.

No: There is no user option to turn on Android-like touch interface on the officially distributed PC version (both 1.0 and nightly).

Sort of: There is a hidden user option ("touchEnabled" in options.cfg), which can be turned on and (probably) gives some very basic touch support... I don't know what exactly it does or if it works at all... but it is present on a few places in OXC code (globe rotating, map scrolling).

Yes: It is possible to compile the Android-branch (of OXC or OXCE+) for the PC... I haven't tried it yet, but theoretically it should work:

a/ OXC: https://github.com/sfalexrog/OpenXcom/tree/sdl2
b/ OXCE+: https://github.com/MeridianOXC/OpenXcom/tree/android

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Touch interface on PC?
« Reply #2 on: October 18, 2017, 04:01:40 pm »
setting TouchEnabled to true in the config should be enough to make it playable with that a touch screen, i don't think you'd need to compile a new exe, but that depends on what you mean by "the same touch interface as the android version".i'm not sure if the android version has any gestures or anything like that implemented, but the standard version definitely doesn't, as that is impossible with the version of SDL we're using.