1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Check whether player is controller

Discussion in 'Development' started by korado531m7, Apr 22, 2018.

  1. korado531m7

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
    can i detect whether player is touch or controller?
     
  2. svile

    svile Spider

    Messages:
    14
  3. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    I don't know if is what your are searching (probaly not) but you can detect the device of the player by using, that can be useful: $player->getDeviceOS()
     
    OnTheVerge likes this.
  4. korado531m7

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
    get device os is can only check minecraft type (e.g. windows)
    so that can't check the player's control type
     
  5. korado531m7

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.