Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PUAE
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
PUAE
Commits
bb447f97
Commit
bb447f97
authored
Dec 06, 2010
by
GnoStiC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puae 2.3.1
parent
e1900939
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
0 deletions
+111
-0
puae_bridge.cpp
src/gui-qt/puae_bridge.cpp
+92
-0
puae_bridge.h
src/gui-qt/puae_bridge.h
+19
-0
No files found.
src/gui-qt/puae_bridge.cpp
0 → 100755
View file @
bb447f97
#include <QtGui/QApplication>
#include <QThread>
#include "puae_bridge.h"
#include "puae_mainwindow.h"
//#include "ui_puae_mainwindow.h"
extern
"C"
{
#include "gui.h"
#include "options.h"
}
/*
*
*
*/
/*class MyThread : public QThread {
public:
virtual void run();
};
void MyThread::run()
{
QApplication a(NULL, NULL);
puae_MainWindow w;
w.show();
a.exec();
}
*/
int
gui_init
(
void
)
{
// MyThread *QT_GUI_Thread=new MyThread;
// QT_GUI_Thread->start();
return
0
;
}
void
gui_exit
(
void
)
{
}
int
gui_update
(
void
)
{
}
void
gui_display
(
int
shortcut
)
{
if
(
shortcut
==
-
1
)
{
QApplication
*
pApp
=
new
QApplication
(
NULL
,
NULL
);
puae_MainWindow
wptr
;
wptr
.
show
();
pApp
->
exec
();
}
}
extern
"C"
void
gui_message
(
const
char
*
format
,...)
{
}
void
gui_fps
(
int
fps
,
int
idle
)
{
}
void
gui_handle_events
(
void
)
{
}
void
gui_led
(
int
num
,
int
on
)
{
}
void
gui_flicker_led
(
int
led
,
int
unitnum
,
int
status
)
{
}
void
gui_gameport_axis_change
(
int
port
,
int
axis
,
int
state
,
int
max
)
{
}
void
gui_gameport_button_change
(
int
port
,
int
button
,
int
onoff
)
{
}
void
gui_disk_image_change
(
int
unitnum
,
const
TCHAR
*
name
,
bool
writeprotected
)
{
}
void
gui_filename
(
int
num
,
const
char
*
name
)
{
}
src/gui-qt/puae_bridge.h
0 → 100755
View file @
bb447f97
#ifndef PUAE_BRIDGE_H
#define PUAE_BRIDGE_H
#include <stdio.h>
#define TCHAR char
typedef
unsigned
char
uae_u8
;
typedef
signed
char
uae_s8
;
typedef
unsigned
int
uae_u16
;
typedef
int
uae_s16
;
typedef
unsigned
long
uae_u32
;
typedef
long
uae_s32
;
#define MAX_DPATH 512
#define STATIC_INLINE static __inline__
#endif // PUAE_BRIDGE_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment