Skip to content

Commit

Permalink
Cherry pick PR #629: Remove Android internal input_events_filter (#643)
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Liang <[email protected]>
Co-authored-by: Colin Liang <[email protected]>
  • Loading branch information
3 people committed Jun 15, 2023
1 parent bea94a1 commit c4d8737
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
8 changes: 0 additions & 8 deletions starboard/android/shared/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,6 @@ static_library("starboard_platform") {
"//third_party/opus",
]

if (is_internal_build) {
sources += [
"//internal/starboard/android/shared/internal/input_events_filter.cc",
"//internal/starboard/android/shared/internal/input_events_filter.h",
]
defines = [ "STARBOARD_INPUT_EVENTS_FILTER" ]
}

if (sb_is_evergreen_compatible) {
sources -= [
"crash_handler.cc",
Expand Down
6 changes: 0 additions & 6 deletions starboard/android/shared/application_android.cc
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,6 @@ bool ApplicationAndroid::SendAndroidKeyEvent(
const GameActivityKeyEvent* event) {
bool result = false;

#ifdef STARBOARD_INPUT_EVENTS_FILTER
if (!input_events_filter_.ShouldProcessKeyEvent(event)) {
return result;
}
#endif

ScopedLock lock(input_mutex_);
if (!input_events_generator_) {
return false;
Expand Down
7 changes: 0 additions & 7 deletions starboard/android/shared/application_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
#include <vector>

#include "game-activity/GameActivity.h"
#ifdef STARBOARD_INPUT_EVENTS_FILTER
#include "internal/starboard/android/shared/internal/input_events_filter.h"
#endif
#include "starboard/android/shared/input_events_generator.h"
#include "starboard/android/shared/jni_env_ext.h"
#include "starboard/atomic.h"
Expand Down Expand Up @@ -168,10 +165,6 @@ class ApplicationAndroid
Mutex input_mutex_;
scoped_ptr<InputEventsGenerator> input_events_generator_;

#ifdef STARBOARD_INPUT_EVENTS_FILTER
internal::InputEventsFilter input_events_filter_;
#endif

bool last_is_accessibility_high_contrast_text_enabled_;

jobject resource_overlay_;
Expand Down

0 comments on commit c4d8737

Please sign in to comment.