Skip to content

Commit

Permalink
added kotlin version
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSeker committed Aug 30, 2024
1 parent 70a0fb5 commit b33a026
Show file tree
Hide file tree
Showing 49 changed files with 1,658 additions and 10 deletions.
10 changes: 10 additions & 0 deletions ControllerSimpleDemo/.idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

318 changes: 318 additions & 0 deletions ControllerSimpleDemo/.idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions ControllerSimpleDemo/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdk 34
compileSdk 35

defaultConfig {
applicationId "edu.cs4730.controllersimpledemo"
minSdkVersion 28
targetSdk 34
minSdkVersion 29
targetSdk 35
versionCode 1
versionName "1.0"
}
Expand All @@ -24,6 +24,8 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation("com.google.android.material:material:1.12.0")
implementation("androidx.activity:activity:1.9.1")

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*/
@SuppressLint("SetTextI18n")
public class MainActivity extends AppCompatActivity {
ActivityMainBinding binding;
Boolean isJoyStick = false, isGamePad = false;
private ActivityMainBinding binding;
private Boolean isJoyStick = false, isGamePad = false;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -132,7 +132,7 @@ public boolean dispatchKeyEvent(android.view.KeyEvent event) {
}

//From Google's page on controller-input
public ArrayList<Integer> getGameControllerIds() {
private ArrayList<Integer> getGameControllerIds() {
ArrayList<Integer> gameControllerDeviceIds = new ArrayList<Integer>();
int[] deviceIds = InputDevice.getDeviceIds();
for (int deviceId : deviceIds) {
Expand Down
2 changes: 1 addition & 1 deletion ControllerSimpleDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.2'
classpath 'com.android.tools.build:gradle:8.5.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion ControllerSimpleDemo/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# The setting is particularly useful for tweaking memory settings.
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.nonTransitiveRClass=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m

Expand Down
Loading

0 comments on commit b33a026

Please sign in to comment.