MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / readinput

Function readinput

src/inputdevice.cpp:3608–3621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3606static uae_u32 prev_input_vpos, input_frame, prev_input_frame;
3607extern int vpos;
3608static void readinput (void)
3609{
3610 int max = current_maxvpos();
3611 int diff = (input_frame * max + vpos) - (prev_input_frame * max + prev_input_vpos);
3612 if (diff > 0) {
3613 if (diff < 10) {
3614 mouseupdate (0, false);
3615 } else {
3616 mouseupdate (diff * 1000 / current_maxvpos (), false);
3617 }
3618 }
3619 prev_input_frame = input_frame;
3620 prev_input_vpos = vpos;
3621}
3622
3623static void joymousecounter (int joy)
3624{

Callers 2

JOY0DATFunction · 0.85
JOY1DATFunction · 0.85

Calls 2

current_maxvposFunction · 0.85
mouseupdateFunction · 0.85

Tested by

no test coverage detected