Git Product home page Git Product logo

Comments (5)

slime73 avatar slime73 commented on September 15, 2024

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


This is intentional, partly because the touch API is designed to work on input devices which don't show the whole LÖVE window or don't even have a screen - a professional drawing tablet attached to a computer, for example.

When I use the touch API functions on my laptop, putting fingers on my trackpad triggers touch events, but it wouldn't make sense for it to use the window's coordinate system for the position in the touch event.

from love-android.

slime73 avatar slime73 commented on September 15, 2024

Original comment by Pablo Mayobre (Bitbucket: PabloMayobre, GitHub: PabloMayobre).


But this is for Android right? so it doesn't make much sense

Does the love.touch work on a computer? I don't really think so... I dont know but I would prefer to have the actual x and y.

from love-android.

slime73 avatar slime73 commented on September 15, 2024

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


But this is for Android right? so it doesn't make much sense

The love.touch API is not designed to be Android-specific. It would be bad if it were, I really don't want fragmentation in the LÖVE APIs.

Does the love.touch work on a computer? I don't really think so...

If you compile the changes on your computer, yes it will work. My laptop's trackpad (Macbook Pro) can do 10+ finger multi-touch and the API works with it.

The love.touch API changes are designed to fit into mainline LÖVE, rather than just being nice for Android use.

from love-android.

slime73 avatar slime73 commented on September 15, 2024

Original comment by Pablo Mayobre (Bitbucket: PabloMayobre, GitHub: PabloMayobre).


Okey then it's fine, we just need to add this to the documentation and it will be fine

from love-android.

slime73 avatar slime73 commented on September 15, 2024

Original comment by Pablo Mayobre (Bitbucket: PabloMayobre, GitHub: PabloMayobre).


This is not a problem but a feature, it just needs to be documented

EDIT: Added the additional information to the wiki page

from love-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.