Added insert coin menu functionality.
This commit is contained in:
parent
b4280ee33d
commit
6fcfb2af7a
|
@ -355,6 +355,14 @@ void consoleWin_t::createMainMenu(void)
|
|||
|
||||
emuMenu->addSeparator();
|
||||
|
||||
// Emulation -> Insert Coin
|
||||
insCoinAct = new QAction(tr("Insert Coin"), this);
|
||||
//insCoinAct->setShortcut( QKeySequence(tr("Ctrl+G")));
|
||||
insCoinAct->setStatusTip(tr("Insert Coin"));
|
||||
connect(insCoinAct, SIGNAL(triggered()), this, SLOT(insertCoin(void)) );
|
||||
|
||||
emuMenu->addAction(insCoinAct);
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// Help
|
||||
helpMenu = menuBar()->addMenu(tr("Help"));
|
||||
|
@ -921,6 +929,14 @@ void consoleWin_t::loadGameGenieROM(void)
|
|||
return;
|
||||
}
|
||||
|
||||
void consoleWin_t::insertCoin(void)
|
||||
{
|
||||
fceuWrapperLock();
|
||||
FCEUI_VSUniCoin();
|
||||
fceuWrapperUnLock();
|
||||
return;
|
||||
}
|
||||
|
||||
void consoleWin_t::aboutFCEUX(void)
|
||||
{
|
||||
printf("About FCEUX\n");
|
||||
|
|
|
@ -76,6 +76,7 @@ class consoleWin_t : public QMainWindow
|
|||
QAction *pauseAct;
|
||||
QAction *gameGenieAct;
|
||||
QAction *loadGgROMAct;
|
||||
QAction *insCoinAct;
|
||||
|
||||
QTimer *gameTimer;
|
||||
emulatorThread_t *emulatorThread;
|
||||
|
@ -126,6 +127,7 @@ class consoleWin_t : public QMainWindow
|
|||
void consolePause(void);
|
||||
void toggleGameGenie(bool checked);
|
||||
void loadGameGenieROM(void);
|
||||
void insertCoin(void);
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue