minor fixes for KidVid, one can start the games with 8, 9, 0 now if right controller is KidVid

This commit is contained in:
Thomas Jentzsch 2019-08-16 20:53:18 +02:00
parent 6ea270cf8f
commit 364137d20d
3 changed files with 5 additions and 3 deletions

View File

@ -327,6 +327,7 @@ void PhysicalJoystickHandler::defineControllerMappings(const Controller::Type ty
switch(type)
{
case Controller::Type::Keyboard:
case Controller::Type::KidVid:
if(port == Controller::Jack::Left)
myLeftMode = EventMode::kKeypadMode;
else

View File

@ -145,6 +145,7 @@ void PhysicalKeyboardHandler::defineControllerMappings(const Controller::Type ty
switch(type)
{
case Controller::Type::Keyboard:
case Controller::Type::KidVid:
if(port == Controller::Jack::Left)
myLeftMode = EventMode::kKeypadMode;
else

View File

@ -66,7 +66,7 @@ void KidVid::update()
myTape = 0; // rewind Kid Vid tape
closeSampleFile();
}
if(myEvent.get(Event::KeyboardZero1))
if(myEvent.get(Event::KeyboardOne1))
{
myTape = 2;
myIdx = myGame == KVBBEARS ? KVBLOCKBITS : 0;
@ -75,7 +75,7 @@ void KidVid::update()
openSampleFile();
cerr << "myTape = " << myTape << endl;
}
else if(myEvent.get(Event::KeyboardZero2))
else if(myEvent.get(Event::KeyboardOne2))
{
myTape = 3;
myIdx = myGame == KVBBEARS ? KVBLOCKBITS : 0;
@ -84,7 +84,7 @@ cerr << "myTape = " << myTape << endl;
openSampleFile();
cerr << "myTape = " << myTape << endl;
}
else if(myEvent.get(Event::KeyboardZero3))
else if(myEvent.get(Event::KeyboardOne3))
{
if(myGame == KVBBEARS) /* Berenstain Bears ? */
{