x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

HTML5 Canvas Input Focus

Hi, I have a commercial HTML5 project with a 1st person camera. I'd like the mouse to become focused to the Canvas (so mouse movement will be locked to the canvas). Currently the mouse is simply overlying the canvas which picks up movement only when the mouse is moved when over it, which means you can only turn slightly before the canvas looses focus.

How can I make the html5 canvas take mouse input focus?

thanks

Product Version: Not Selected
Tags:
more ▼

asked Jul 29 '14 at 01:33 PM in C++ Programming

avatar image

b14de
66 12 12 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You can use emscripten_request_pointerlock from the emscripten API. for now. I know, Its an open bug for UE4, not too sure about the timeframe though.

emscripten API

more ▼

answered Aug 06 '14 at 04:05 PM

avatar image

[Ankitkk] STAFF
481 13 3 9

avatar image b14de Aug 06 '14 at 04:52 PM

Great, i'll give that a go. Appreciate the reply, good to know it's in hand :)

avatar image [Ankitkk] STAFF Sep 06 '14 at 02:11 AM

This should be in main as of 2 weeks or so back

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question