aiie/linuxfb/fb-paddles.cpp
Jorj Bauer 99d0c8e72c Squashed commit of
* 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
2018-02-07 10:28:40 -05:00

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;
}