You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unity 2018.2.6f1
PowerUI 2.5 (from the web-page)
Using Unity's NetStandard 2.0 (I had to remove Pico, Precompiler directories and modify ReflectionEmit.cs (add comment to second line => #define AbleToCompile) to get it work.
UPDATE 1
I tried to stringify the event object: console.log(JSON.stringify(ev))
Result is: {}
UPDATE 2
When I type normal characters from Alphabet, it works but not correct.
If I type 'A' it will show:
Key =
A
A
test
It sounds the key and code are representing same value.
The output from the stringify is still {}, it looks like there is problem with JSON or it does not pack Events.
Other symbols 'Enter', 'Backspace', 'Semi-colon' are represented by ' ' (empty) symbol.
UPDATE 3
After more debugging I went to the StandardUpdater to line 50. PowerUI.Input.OnKeyPress(true,current.character,(int)current.keyCode);
I added debug above this line for current and it shows:
I'm very confused for now. Where developers can take numerical non-deprecated keyCode now?
Anyway if you are offering deprecated char, can you offer keyCode too? It will make things more simply. Thank you.
Update 7
Well, this is my bad. The keyCode is already exists. I did not notice that the UIEvent class is partial.
The text was updated successfully, but these errors were encountered:
Applications:
HTML:
JavaScript:
Result:
Stacktrace of
ev.key
Expected result:
UPDATE 1
I tried to stringify the event object:
console.log(JSON.stringify(ev))
Result is:
{}
UPDATE 2
When I type normal characters from Alphabet, it works but not correct.
If I type 'A' it will show:
It sounds the
key
andcode
are representing same value.The output from the stringify is still
{}
, it looks like there is problem with JSON or it does not pack Events.Other symbols 'Enter', 'Backspace', 'Semi-colon' are represented by ' ' (empty) symbol.
UPDATE 3
After more debugging I went to the StandardUpdater to line 50.
PowerUI.Input.OnKeyPress(true,current.character,(int)current.keyCode);
I added debug above this line for
current
and it shows:Update 4
In KeyboardEvent.cs
Are these lines:
It should be
I'm able to get real keyCode now. For me is it fixed. But I will leave still this issue open.
Update 5
Regard to lib.dom.d.ts is your code correct.
I'm very confused for now. Where developers can take numerical non-deprecated keyCode now?
Anyway if you are offering deprecated
char
, can you offerkeyCode
too? It will make things more simply. Thank you.Update 7
Well, this is my bad. The
keyCode
is already exists. I did not notice that the UIEvent class is partial.The text was updated successfully, but these errors were encountered: