GameInputDevice.hx 967 B

12345678910111213141516171819202122
  1. package flash.ui;
  2. @:require(flash11_8) extern final class GameInputDevice {
  3. @:flash.property var enabled(get,set) : Bool;
  4. @:flash.property var id(get,never) : String;
  5. @:flash.property var name(get,never) : String;
  6. @:flash.property var numControls(get,never) : Int;
  7. @:flash.property var sampleInterval(get,set) : Int;
  8. function new() : Void;
  9. function getCachedSamples(data : flash.utils.ByteArray, append : Bool = false) : Int;
  10. function getControlAt(i : Int) : GameInputControl;
  11. private function get_enabled() : Bool;
  12. private function get_id() : String;
  13. private function get_name() : String;
  14. private function get_numControls() : Int;
  15. private function get_sampleInterval() : Int;
  16. private function set_enabled(value : Bool) : Bool;
  17. private function set_sampleInterval(value : Int) : Int;
  18. function startCachingSamples(numSamples : Int, controls : flash.Vector<String>) : Void;
  19. function stopCachingSamples() : Void;
  20. static final MAX_BUFFER_SIZE : Int;
  21. }