How to prevent default volume command ?
-
Hello,
I have a TextInput in my HaxeFlixel game, it's to type a number, when I type on the 0 it changes the Volume. How to prevent this default command from haxeflixel please ?
I tried to find the anwser by myself, without success.
-
Disable only the mute keys with this
FlxG.sound.muteKeys = null;
There is also
FlxG.sound.volumeUpKeys
and
FlxG.sound.volumeDownKeys
More info here https://api.haxeflixel.com/flixel/system/frontEnds/SoundFrontEnd.html
-
Thank you, I confirm it's working with the first line of code. 👍