Comments (6)
Okay so:
- startFocus / endFoucs are made public
- capture enter is optional with focusOutOnEnter property (defaults to true)
- Input in phaser when inputField is active can be blocked with blockInput property (defaults to true)
Are your issues here resolved? :)
from phaser-input.
So If I understand correctly, there are things you'd like to see changed:
- Don't capture enter in the library (makes sense, i'll make it an optional piece)
- Disable input in the game all together when inputting text (completely makes sense, consider it done)
from phaser-input.
I wasn't sure if I should make a pull or not. I figured I would at least share my experience.
- I agree with.
- Sure didn't think of that
Also, I was thinking it would be nice if there was a manual start and stop, so devs could bind them to what ever keys they want. Otherwise, updating the readme could also go a long way.
ps. thanks for sharing. I updated my answer here http://stackoverflow.com/questions/32071579/how-to-take-text-input-in-phaser
from phaser-input.
I think I mis understood your second code example then, but I get it now. And with manual start/stop, do you mean when to focus and/or focus out on the input field? This shouldn't be so hard, but I think this might cause issues for mobile focusing, as Safari and Chrome mobile are pretty picky on how to achieve this. It's only allowed by a touch event.
Still I could make those bind/call-able
from phaser-input.
Oh I see. I haven't been able to test on mobile yet. Yeah, it wasn't clear how to manually focus and blur. The above code works for desktop Chrome. I still need to test other browsers.
from phaser-input.
That sounds great. Thanks for making those changes.
from phaser-input.
Related Issues (20)
- Input Plugin not working on mobile devices- HOT 14
- BOX STILL DISAPPER!!! HOT 1
- What are the accepted values for font weight? HOT 4
- suggestion to update read me and add couple of signals to improve plugin
- Scroll problem on input text focus HOT 1
- caret position when text > input width HOT 1
- Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas) phaser HOT 1
- Do you planed to make textarea fields type? HOT 1
- Numeric keyboard/input only but show password characters HOT 1
- Text goes to right after typing
- Setting borderWidth to 0 defaults back to 1
- Using Phaser-Input in Phaser 3 Has An Error HOT 4
- Text box still shows up white after changing properties HOT 4
- Phaser 2 Webpack build error HOT 2
- scene deformation HOT 1
- Input doesn't work in fullscreen HOT 9
- '0' has no input count limit if using InputType.number
- How to create multi-line textfield?
- Disable input
- How to get input field value? 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 phaser-input.