Skip to content

Commit

Permalink
avm2: TouchEvent.getSamples and isToolButtonDown are AIR only
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone committed Jul 29, 2024
1 parent de8e9b6 commit 892c39f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/avm2/globals/flash/events/TouchEvent.as
Original file line number Diff line number Diff line change
Expand Up @@ -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.
[API("675")]
public function getSamples(buffer: ByteArray, append: Boolean = false): uint {
stub_method("flash.events.TouchEvent", "getSamples");
return 0;
}

// Reports that the hardware button at the specified index is pressed.
[API("675")]
public function isToolButtonDown(index: int): Boolean {
stub_method("flash.events.TouchEvent", "isToolButtonDown");
return false;
Expand Down

0 comments on commit 892c39f

Please sign in to comment.