updated unix format ending
This commit is contained in:
@@ -210,50 +210,29 @@ public class ControlFragment extends Fragment implements View.OnClickListener {
|
||||
public void onClick(View v) {
|
||||
vibrate(mParent);
|
||||
int []decoded = null;
|
||||
switch(v.getId()) {
|
||||
case R.id.iv_power:
|
||||
int id = v.getId();
|
||||
if (id == R.id.iv_power) {
|
||||
decoded = irControl(KEY_POWER);
|
||||
break;
|
||||
|
||||
case R.id.iv_up:
|
||||
} else if (id == R.id.iv_up) {
|
||||
decoded = irControl(KEY_UP);
|
||||
break;
|
||||
|
||||
case R.id.iv_down:
|
||||
} else if (id == R.id.iv_down) {
|
||||
decoded = irControl(KEY_DOWN);
|
||||
break;
|
||||
|
||||
case R.id.iv_left:
|
||||
} else if (id == R.id.iv_left) {
|
||||
decoded = irControl(KEY_LEFT);
|
||||
break;
|
||||
|
||||
case R.id.iv_right:
|
||||
} else if (id == R.id.iv_right) {
|
||||
decoded = irControl(KEY_RIGHT);
|
||||
break;
|
||||
|
||||
case R.id.iv_ok:
|
||||
} else if (id == R.id.iv_ok) {
|
||||
decoded = irControl(KEY_OK);
|
||||
break;
|
||||
|
||||
case R.id.iv_plus:
|
||||
} else if (id == R.id.iv_plus) {
|
||||
decoded = irControl(KEY_PLUS);
|
||||
break;
|
||||
|
||||
case R.id.iv_minus:
|
||||
} else if (id == R.id.iv_minus) {
|
||||
decoded = irControl(KEY_MINUS);
|
||||
break;
|
||||
|
||||
case R.id.iv_back:
|
||||
} else if (id == R.id.iv_back) {
|
||||
decoded = irControl(KEY_BACK);
|
||||
break;
|
||||
|
||||
case R.id.iv_home:
|
||||
} else if (id == R.id.iv_home) {
|
||||
decoded = irControl(KEY_HOME);
|
||||
break;
|
||||
|
||||
case R.id.iv_menu:
|
||||
} else if (id == R.id.iv_menu) {
|
||||
decoded = irControl(KEY_MENU);
|
||||
break;
|
||||
}
|
||||
// send decoded integer array to IR emitter
|
||||
ConsumerIrManager irEmitter =
|
||||
|
||||
@@ -6,7 +6,7 @@ buildscript {
|
||||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.4.2'
|
||||
classpath 'com.android.tools.build:gradle:8.2.0'
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/**************************************************************************************************
|
||||
/**************************************************************************************************
|
||||
Filename: ir_decode_jni.c
|
||||
Revised: Date: 2016-03-21
|
||||
Revision: Revision: 1.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#if defined BOARD_ANDROID
|
||||
#include <jni.h>
|
||||
#elif (defined BOARD_PC) && (defined BOARD_PC_JNI)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- ***************************************************************************************************************** -->
|
||||
<!--
|
||||
Boundary Config XML file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29806.167
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="源文件">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
========================================================================
|
||||
========================================================================
|
||||
控制台应用程序:DecodeTestWin 项目概述
|
||||
========================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user