Comments (5)
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.
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.
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.
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.
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)
- update wiki HOT 2
- Slightly wrong documentation on generating aab HOT 1
- No Game when i open the app HOT 3
- Better library loading support on Android HOT 3
- package.cpath load module location HOT 1
- love apk 11.4 does not register the .love extension automatically when installed HOT 4
- No game when there is one? HOT 2
- How is screen resolution handled? HOT 3
- LuaJIT failed to start in 12.0 HOT 10
- Catching volume buttons HOT 3
- Catching volume buttons HOT 1
- cannot load C library from either `/lib/[abi]/lib?.so` or `/lib/[abi]/?.so` HOT 29
- No storage permission on Android 12 (official Löve 11.4 build apk) HOT 5
- Bug? HOT 1
- 3rd-Party CMake Module
- 12.x crash: dlopen failed liboboe.so
- Failing build on platform without python2 (or maybe without python3 being aliased to python). HOT 3
- 12.x Error: dlopen failed: library "libluajit.so" not found. HOT 1
- Backport Game Selector to LOVE 11.
- can't install build release apk HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from love-android.