Discussion PSA: GameMaker Can Process More than 5 Touch Points

Discussion in 'GameMaker Studio 2 Community Tech Support' started by TheMagician, Jun 7, 2017.

  1. TheMagician

    TheMagician Member

    Joined:
    Jun 20, 2016
    Posts:
    57
    For your information: Even though the manual doesn't mention this explicitly, GameMaker can process more than 5 touch points. I've tested this up to 10 on the UWP and HTML5 targets.

    You may ignore the rest of this thread.


    In my free time I help develop prototypes for a board game company that experiments with touch tables. The monitors they use in their tables can register up to 12 touch points.

    For some games where more than 6 players sit around the table the 5 touch points in GMS put a limit on simultaneous gameplay.

    Is there any chance that you increase the number of touch points that GMS can register to 10?
     
    Last edited: Jun 8, 2017
  2. gnysek

    gnysek Member

    Joined:
    Jun 20, 2016
    Posts:
    1,303
    You can always write an extension.
     
  3. zbox

    zbox Member GMC Elder

    Joined:
    Jun 21, 2016
    Posts:
    793
    Or get someone to write one for you ;)

    Also though is that really the max?? I was sure I tested it and there was more at some point!! Maybe not so then...
     
  4. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,538
    I'm just wondering if the 5-touch limit is an OS-mandated cap or just an fool-proofing cap. If it's the latter, I don't see why we couldn't lift it and also add device_mouse_count() to prevent ourselves from overstepping the bounds.
     
  5. Roderick

    Roderick Member

    Joined:
    Jun 22, 2016
    Posts:
    580
    The docs for both 1.4 and 2.0 list acceptable device ids as 0-4.
     
  6. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,538
    @TheMagician @Roderick @zbox

    This is one of the few times when I'd recommend independent investigation against the Manual's advice.

    Here is a quick sampler that I whipped up for testing the 12 touches on TheMagician's table. It runs on my single-touch Windows PC without errors for going over 4, which looks promising as a starter. I look forward to hearing about the actual outcome.
     
  7. zbox

    zbox Member GMC Elder

    Joined:
    Jun 21, 2016
    Posts:
    793
    Cool - not hardware related because most phones today have at least 10 touchpoints
     
  8. TheMagician

    TheMagician Member

    Joined:
    Jun 20, 2016
    Posts:
    57
    @FrostyCat

    I haven't looked at your file but I did my own tests prior to posting on here. I used GMS 1.4 with the UWP target and the 12-point touch table. No touch is registered after the 5th one.
     
  9. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,538
    Try the HTML5 export. I looked in debug and there doesn't seem to be a hard 5-input cap in the runner.
     
  10. TheMagician

    TheMagician Member

    Joined:
    Jun 20, 2016
    Posts:
    57
    ... I feel embarrassed ... I wrote the test program from scratch and what do you know - there is no hard upper limit to the number of touch points (tested on UWP and HTML5).

    Thanks @FrostyCat for insisting :)
     

Share This Page

  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.
    Dismiss Notice