Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
6f20ee75
Commit
6f20ee75
authored
Sep 21, 2021
by
kenan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除 process_input
parent
6817dfe3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
29 deletions
+1
-29
Classes/gframe/gframe.cpp
Classes/gframe/gframe.cpp
+1
-2
libcore/android/android_tools.cpp
libcore/android/android_tools.cpp
+0
-23
libcore/android/android_tools.h
libcore/android/android_tools.h
+0
-4
No files found.
Classes/gframe/gframe.cpp
View file @
6f20ee75
...
@@ -40,12 +40,11 @@ int GetListBoxIndex(IGUIListBox* listbox, const wchar_t * target){
...
@@ -40,12 +40,11 @@ int GetListBoxIndex(IGUIListBox* listbox, const wchar_t * target){
return
-
1
;
return
-
1
;
}
}
void
android_main
(
ANDROID_APP
app
)
{
void
android_main
(
ANDROID_APP
app
)
{
app
->
inputPollSource
.
process
=
android
::
process_input
;
#else
#else
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
#endif
#endif
evthread_use_pthreads
();
evthread_use_pthreads
();
ygo
::
Game
*
game
=
new
ygo
::
Game
;
auto
game
=
new
ygo
::
Game
;
if
(
ygo
::
mainGame
!=
nullptr
){
if
(
ygo
::
mainGame
!=
nullptr
){
delete
ygo
::
mainGame
;
delete
ygo
::
mainGame
;
}
}
...
...
libcore/android/android_tools.cpp
View file @
6f20ee75
...
@@ -859,29 +859,6 @@ void toggleOverlayView(ANDROID_APP app, bool pShow) {
...
@@ -859,29 +859,6 @@ void toggleOverlayView(ANDROID_APP app, bool pShow) {
jni
->
DeleteLocalRef
(
ClassNativeActivity
);
jni
->
DeleteLocalRef
(
ClassNativeActivity
);
app
->
activity
->
vm
->
DetachCurrentThread
();
app
->
activity
->
vm
->
DetachCurrentThread
();
}
}
void
process_input
(
ANDROID_APP
app
,
struct
android_poll_source
*
source
)
{
AInputEvent
*
event
=
NULL
;
if
(
AInputQueue_getEvent
(
app
->
inputQueue
,
&
event
)
>=
0
)
{
int
type
=
AInputEvent_getType
(
event
);
bool
skip_predispatch
=
AInputEvent_getType
(
event
)
==
AINPUT_EVENT_TYPE_KEY
&&
AKeyEvent_getKeyCode
(
event
)
==
AKEYCODE_BACK
;
// skip predispatch (all it does is send to the IME)
if
(
!
skip_predispatch
&&
AInputQueue_preDispatchEvent
(
app
->
inputQueue
,
event
))
{
return
;
}
int32_t
handled
=
0
;
if
(
app
->
onInputEvent
!=
NULL
)
handled
=
app
->
onInputEvent
(
app
,
event
);
AInputQueue_finishEvent
(
app
->
inputQueue
,
event
,
handled
);
}
else
{
// LOGE("Failure reading next input event: %s\n", strerror(errno));
}
}
void
onGameExit
(
ANDROID_APP
app
){
void
onGameExit
(
ANDROID_APP
app
){
if
(
!
app
||
!
app
->
activity
||
!
app
->
activity
->
vm
)
if
(
!
app
||
!
app
->
activity
||
!
app
->
activity
->
vm
)
...
...
libcore/android/android_tools.h
View file @
6f20ee75
...
@@ -186,10 +186,6 @@ extern bool getFontAntiAlias(ANDROID_APP app);
...
@@ -186,10 +186,6 @@ extern bool getFontAntiAlias(ANDROID_APP app);
extern
void
showAndroidComboBoxCompat
(
ANDROID_APP
app
,
bool
pShow
,
extern
void
showAndroidComboBoxCompat
(
ANDROID_APP
app
,
bool
pShow
,
char
**
pContents
,
int
count
,
int
mode
=
0
);
char
**
pContents
,
int
count
,
int
mode
=
0
);
/* android event handlers*/
extern
void
process_input
(
ANDROID_APP
app
,
struct
android_poll_source
*
source
);
extern
s32
handleInput
(
ANDROID_APP
app
,
AInputEvent
*
androidEvent
);
extern
s32
handleInput
(
ANDROID_APP
app
,
AInputEvent
*
androidEvent
);
extern
bool
android_deck_delete
(
const
char
*
deck_name
);
extern
bool
android_deck_delete
(
const
char
*
deck_name
);
...
...
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