Wrapper; Adding minor fixes to html5 builds accidentally calling native function. Fixed input to match the new values on html5

This commit is contained in:
underscorediscovery
2013-12-10 11:52:58 -03:30
parent ad8e55347f
commit ca3684791b
2 changed files with 9 additions and 7 deletions

View File

@@ -179,11 +179,13 @@ class Sound {
@:noCompletion public function do_check_complete ():Bool {
if( lime_sound_channel_is_complete(channel) ) {
handle = null;
channel = null;
return true;
}
#if lime_native
if( lime_sound_channel_is_complete(channel) ) {
handle = null;
channel = null;
return true;
}
#end
return false;

View File

@@ -525,7 +525,7 @@ class InputHandler {
js.Browser.document.addEventListener('keydown', function(e){
if (e.keyCode >= 65 && e.keyCode <= 122) {
e.value = e.which+32;
e.value = e.which;
} else {
e.value = e.which;
}
@@ -534,7 +534,7 @@ class InputHandler {
});
js.Browser.document.addEventListener('keyup', function(e){
if (e.keyCode >= 65 && e.keyCode <= 122) {
e.value = e.which+32;
e.value = e.which;
} else {
e.value = e.which;
}