mirror of https://github.com/stella-emu/stella.git
minor fixes for KidVid, one can start the games with 8, 9, 0 now if right controller is KidVid
This commit is contained in:
parent
6ea270cf8f
commit
364137d20d
|
@ -327,6 +327,7 @@ void PhysicalJoystickHandler::defineControllerMappings(const Controller::Type ty
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case Controller::Type::Keyboard:
|
case Controller::Type::Keyboard:
|
||||||
|
case Controller::Type::KidVid:
|
||||||
if(port == Controller::Jack::Left)
|
if(port == Controller::Jack::Left)
|
||||||
myLeftMode = EventMode::kKeypadMode;
|
myLeftMode = EventMode::kKeypadMode;
|
||||||
else
|
else
|
||||||
|
|
|
@ -145,6 +145,7 @@ void PhysicalKeyboardHandler::defineControllerMappings(const Controller::Type ty
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case Controller::Type::Keyboard:
|
case Controller::Type::Keyboard:
|
||||||
|
case Controller::Type::KidVid:
|
||||||
if(port == Controller::Jack::Left)
|
if(port == Controller::Jack::Left)
|
||||||
myLeftMode = EventMode::kKeypadMode;
|
myLeftMode = EventMode::kKeypadMode;
|
||||||
else
|
else
|
||||||
|
|
|
@ -66,7 +66,7 @@ void KidVid::update()
|
||||||
myTape = 0; // rewind Kid Vid tape
|
myTape = 0; // rewind Kid Vid tape
|
||||||
closeSampleFile();
|
closeSampleFile();
|
||||||
}
|
}
|
||||||
if(myEvent.get(Event::KeyboardZero1))
|
if(myEvent.get(Event::KeyboardOne1))
|
||||||
{
|
{
|
||||||
myTape = 2;
|
myTape = 2;
|
||||||
myIdx = myGame == KVBBEARS ? KVBLOCKBITS : 0;
|
myIdx = myGame == KVBBEARS ? KVBLOCKBITS : 0;
|
||||||
|
@ -75,7 +75,7 @@ void KidVid::update()
|
||||||
openSampleFile();
|
openSampleFile();
|
||||||
cerr << "myTape = " << myTape << endl;
|
cerr << "myTape = " << myTape << endl;
|
||||||
}
|
}
|
||||||
else if(myEvent.get(Event::KeyboardZero2))
|
else if(myEvent.get(Event::KeyboardOne2))
|
||||||
{
|
{
|
||||||
myTape = 3;
|
myTape = 3;
|
||||||
myIdx = myGame == KVBBEARS ? KVBLOCKBITS : 0;
|
myIdx = myGame == KVBBEARS ? KVBLOCKBITS : 0;
|
||||||
|
@ -84,7 +84,7 @@ cerr << "myTape = " << myTape << endl;
|
||||||
openSampleFile();
|
openSampleFile();
|
||||||
cerr << "myTape = " << myTape << endl;
|
cerr << "myTape = " << myTape << endl;
|
||||||
}
|
}
|
||||||
else if(myEvent.get(Event::KeyboardZero3))
|
else if(myEvent.get(Event::KeyboardOne3))
|
||||||
{
|
{
|
||||||
if(myGame == KVBBEARS) /* Berenstain Bears ? */
|
if(myGame == KVBBEARS) /* Berenstain Bears ? */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue