From ca3684791b644ef6420479f4ec42dd5116432de5 Mon Sep 17 00:00:00 2001 From: underscorediscovery Date: Tue, 10 Dec 2013 11:52:58 -0330 Subject: [PATCH] Wrapper; Adding minor fixes to html5 builds accidentally calling native function. Fixed input to match the new values on html5 --- lime/AudioHandler.hx | 12 +++++++----- lime/InputHandler.hx | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lime/AudioHandler.hx b/lime/AudioHandler.hx index f183795b1..b89e2b956 100644 --- a/lime/AudioHandler.hx +++ b/lime/AudioHandler.hx @@ -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; diff --git a/lime/InputHandler.hx b/lime/InputHandler.hx index e7017860a..2190bbae9 100644 --- a/lime/InputHandler.hx +++ b/lime/InputHandler.hx @@ -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; }