Comments (6)
Same with defos.move_cursor_to
from defos.
I'm pretty sure it's bad UX to lock the user's cursor when your app is not in focus...
from defos.
Yes, I'm saying the current DefOS behavior is bad and needs to not change cursor position when game does not have focus as it currently does.
from defos.
Oh, fair. You're right
from defos.
Defold devs can of course use window.set_listener to detect when game has focus or not, but I don't think we should give people the option to change mouse position when window is not in focus as the uses for it are more nefarious than legitimate.
from defos.
Not to mention, many people might just not think this as a problem
from defos.
Related Issues (20)
- Custom OS cursor breaking for macOS since recent update? HOT 12
- Need to change / improve method of setting HTML5 cursor
- Custom cursor images do not work in Microsoft Edge
- Multi monitor / tv setups can create issues with fullscreen mode HOT 2
- FPS cursor lock HOT 2
- Emscripten 1.39 support HOT 2
- hide cursor not working on mac HOT 2
- First input after toggling fullscreen not available on MacOS? HOT 1
- Should defos.on_click() be expanded to cover additional user interaction events? HOT 2
- Cross-platform custom cursors
- allow `clip cursor to game view area` for Linux HOT 1
- Set Window/View Size Before Game Start HOT 2
- Library stops project from building on linux HOT 8
- Changing the window title HOT 3
- Defos for dynamically scaling Defold game window in HTML5? HOT 2
- Toggling fullscreen re-enables window resize if previously disabled (Windows 10)
- Setting initial view size causes error `Could not find '@render' socket` HOT 4
- Updating to Clang 17 in Defold 1.6.2
- Windows 11, using defos.get_view_size() immediatly after defos.set_view_size() return different values. HOT 1
- View size from game.project affects HTML5 canvas size until first window resize
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 defos.