Skip to content

Commit d8fca29

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
docs: use looper constant in touch-handling comment
Replace magic 1 with looper.ALOOPER_PREPARE_ALLOW_NON_CALLBACKS.
1 parent 0b317c5 commit d8fca29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • examples/input/touch-handling

examples/input/touch-handling/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func main() {
7171
//
7272
// import "github.com/xaionaro-go/ndk/looper"
7373
//
74-
// lp := looper.Prepare(1) // ALOOPER_PREPARE_ALLOW_NON_CALLBACKS
74+
// lp := looper.Prepare(int32(looper.ALOOPER_PREPARE_ALLOW_NON_CALLBACKS))
7575
// defer lp.Close()
7676
//
7777
// Attaching the queue to the looper is done at the the low-level layer level

0 commit comments

Comments
 (0)