mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-12-01 14:50:54 +00:00
99d0c8e72c
* New BIOS interface * New linux framebuffer version * Unified linuxfb and SDL with Teensy * Abstracted VM RAM * Fixed disk image corruption due to bad cache handling * Variable CPU speed support
30 lines
355 B
C++
30 lines
355 B
C++
#include <stdio.h>
|
|
#include "fb-paddles.h"
|
|
|
|
#include "globals.h"
|
|
|
|
FBPaddles::FBPaddles()
|
|
{
|
|
p0 = p1 = 127;
|
|
}
|
|
|
|
FBPaddles::~FBPaddles()
|
|
{
|
|
}
|
|
|
|
void FBPaddles::startReading()
|
|
{
|
|
g_vm->triggerPaddleInCycles(0, 12 * p0);
|
|
g_vm->triggerPaddleInCycles(1, 12 * p1);
|
|
}
|
|
|
|
uint8_t FBPaddles::paddle0()
|
|
{
|
|
return p0;
|
|
}
|
|
|
|
uint8_t FBPaddles::paddle1()
|
|
{
|
|
return p1;
|
|
}
|