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
cb06d5ac
Commit
cb06d5ac
authored
May 30, 2011
by
CeRiAl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GUI-SDL: Compilation fixes
parent
9eea0a87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
23 deletions
+29
-23
inputmode.c
src/gui-sdl/inputmode.c
+29
-23
No files found.
src/gui-sdl/inputmode.c
View file @
cb06d5ac
#include "sysconfig.h"
#include "sysdeps.h"
#include "options.h"
#include "uae.h"
#include <SDL.h>
#include "inputmode.h"
extern
char
launchDir
[
MAX_PATH
];
extern
char
launchDir
[
MAX_PATH
];
extern
SDL_Surface
*
prSDLScreen
;
static
SDL_Surface
*
ksur
;
static
SDL_Surface
*
inputMode
[
3
];
static
SDL_Surface
*
inputMode
[
3
];
int
show_inputmode
=
0
;
int
inputmode_init
(
void
)
{
int
i
;
int
inputmode_init
(
void
)
{
int
i
;
char
tmpchar
[
MAX_PATH
];
SDL_Surface
*
tmp
;
SDL_Surface
*
tmp
;
sprintf
(
tmpchar
,
"%s/images/joystick.bmp"
,
launchDir
);
tmp
=
SDL_LoadBMP
(
tmpchar
);
...
...
@@ -20,35 +26,35 @@ int inputmode_init (void) {
inputMode
[
0
]
=
SDL_DisplayFormat
(
tmp
);
SDL_FreeSurface
(
tmp
);
}
sprintf
(
tmpchar
,
"%s/images/mouse.bmp"
,
launchDir
);
tmp
=
SDL_LoadBMP
(
tmpchar
);
if
(
tmp
)
{
inputMode
[
1
]
=
SDL_DisplayFormat
(
tmp
);
SDL_FreeSurface
(
tmp
);
}
return
0
;
}
void
inputmode_redraw
(
void
)
{
return
0
;
}
void
inputmode_redraw
(
void
)
{
SDL_Rect
r
;
SDL_Surface
*
surface
;
r
.
x
=
80
;
r
.
y
=
60
;
r
.
w
=
160
;
r
.
x
=
80
;
r
.
y
=
60
;
r
.
w
=
160
;
r
.
h
=
120
;
if
(
inputMode
[
0
]
&&
inputMode
[
1
])
{
// if (gp2xMouseEmuOn) {
// if (gp2xMouseEmuOn) {
if
(
1
)
{
surface
=
inputMode
[
1
];
}
else
{
surface
=
inputMode
[
0
];
}
SDL_BlitSurface
(
surface
,
NULL
,
prSDLScreen
,
&
r
);
}
}
}
}
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