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

Function alg_potgor

src/arcadia.cpp:1397–1420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395}
1396
1397uae_u16 alg_potgor(uae_u16 potgo)
1398{
1399 alg_potgo = potgo;
1400
1401 int ply = alg_get_player(alg_potgo);
1402
1403 if (alg_picmatic_nova == 1) {
1404 potgo |= (0x1000 | 0x0100 | 0x4000 | 0x0400);
1405 // right trigger
1406 if (alg_flag & 128)
1407 potgo &= ~0x1000;
1408
1409 } else {
1410 potgo |= (0x1000 | 0x0100);
1411 // trigger
1412 if (((alg_flag & 128) && ply == 1) || ((alg_flag & 64) && ply == 0))
1413 potgo &= ~0x1000;
1414 // right start
1415 if (alg_flag & 8)
1416 potgo &= ~0x0100;
1417 }
1418
1419 return potgo;
1420}
1421uae_u16 alg_joydat(int joy, uae_u16 v)
1422{
1423 if (!alg_flag)

Callers 1

handle_joystick_potgorFunction · 0.85

Calls 1

alg_get_playerFunction · 0.85

Tested by

no test coverage detected