avm2: TouchEvent.getSamples and isToolButtonDown are AIR only

This commit is contained in:
Nathan Adams 2024-07-28 23:26:52 +02:00
parent de8e9b60f6
commit 892c39f24d
1 changed files with 2 additions and 0 deletions

View File

@ -68,12 +68,14 @@ public class TouchEvent extends Event {
} }
// Updates the specified ByteArray object with the high-frequency data points for a multi-point touch event. // Updates the specified ByteArray object with the high-frequency data points for a multi-point touch event.
[API("675")]
public function getSamples(buffer: ByteArray, append: Boolean = false): uint { public function getSamples(buffer: ByteArray, append: Boolean = false): uint {
stub_method("flash.events.TouchEvent", "getSamples"); stub_method("flash.events.TouchEvent", "getSamples");
return 0; return 0;
} }
// Reports that the hardware button at the specified index is pressed. // Reports that the hardware button at the specified index is pressed.
[API("675")]
public function isToolButtonDown(index: int): Boolean { public function isToolButtonDown(index: int): Boolean {
stub_method("flash.events.TouchEvent", "isToolButtonDown"); stub_method("flash.events.TouchEvent", "isToolButtonDown");
return false; return false;