MCPcopy Create free account
hub / github.com/JesseTG/melonds-ds / generate_input

Function generate_input

test/python/basics/core_accepts_pointer_input.py:15–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def generate_input():
16 circle = tuple(generate_circle_points(180, 0x6fff, pi/2))
17 yield from iter(circle)
18 # Circle the pointer around the screen, starting from near the bottom
19
20 yield from itertools.repeat(circle[0], 120)
21 # Hold the pointer in place for a bit
22
23 yield Pointer(circle[0].x, circle[0].y, True)
24 # Touch the screen at the current pointer position
25
26 yield from itertools.repeat(circle[0])
27
28
29session: Session

Callers

nothing calls this directly

Calls 1

generate_circle_pointsFunction · 0.85

Tested by

no test coverage detected