mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 00:59:56 -06:00
basic provision for feeding external pictures to the cameras
This commit is contained in:
@ -421,6 +421,9 @@ void EmuThread::run()
|
||||
|
||||
char melontitle[100];
|
||||
|
||||
QImage testimg("test.jpg");
|
||||
QImage testimg_conv = testimg.convertToFormat(QImage::Format_RGB32);
|
||||
|
||||
while (EmuRunning != 0)
|
||||
{
|
||||
Input::Process();
|
||||
@ -501,6 +504,9 @@ void EmuThread::run()
|
||||
OSD::AddMessage(0, lid ? "Lid closed" : "Lid opened");
|
||||
}
|
||||
|
||||
// camera input test
|
||||
NDS::CamInputFrame(0, (u32*)testimg_conv.bits(), testimg_conv.width(), testimg_conv.height());
|
||||
|
||||
// microphone input
|
||||
micProcess();
|
||||
|
||||
@ -1807,7 +1813,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
|
||||
if (event->isAutoRepeat()) return;
|
||||
|
||||
// TODO!! REMOVE ME IN RELEASE BUILDS!!
|
||||
//if (event->key() == Qt::Key_F11) NDS::debug(0);
|
||||
if (event->key() == Qt::Key_F11) NDS::debug(0);
|
||||
|
||||
Input::KeyPress(event);
|
||||
}
|
||||
|
Reference in New Issue
Block a user