mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-02-18 00:30:43 +00:00
atari8: paddle inputs
This commit is contained in:
parent
9d39edf452
commit
63d3b88a7a
@ -40,7 +40,7 @@ var ATARI8_KEYCODE_MAP = makeKeycodeMap([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
export class Atari800 extends BasicScanlineMachine {
|
export class Atari800 extends BasicScanlineMachine implements AcceptsPaddleInput {
|
||||||
|
|
||||||
// http://www.ataripreservation.org/websites/freddy.offenga/megazine/ISSUE5-PALNTSC.html
|
// http://www.ataripreservation.org/websites/freddy.offenga/megazine/ISSUE5-PALNTSC.html
|
||||||
cpuFrequency = 1789773;
|
cpuFrequency = 1789773;
|
||||||
@ -93,7 +93,6 @@ export class Atari800 extends BasicScanlineMachine {
|
|||||||
this.handler = newKeyboardHandler(
|
this.handler = newKeyboardHandler(
|
||||||
this.inputs, ATARI8_KEYCODE_MAP, this.getKeyboardFunction(), true);
|
this.inputs, ATARI8_KEYCODE_MAP, this.getKeyboardFunction(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
newBus() {
|
newBus() {
|
||||||
return {
|
return {
|
||||||
read: newAddressDecoder([
|
read: newAddressDecoder([
|
||||||
@ -407,6 +406,10 @@ export class Atari800 extends BasicScanlineMachine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setPaddleInput(controller: number, value: number): void {
|
||||||
|
this.irq_pokey.pot_inputs[controller] = 255 - value;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Atari5200 extends Atari800 {
|
export class Atari5200 extends Atari800 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user