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) {
|
public void onClick(View v) {
|
||||||
vibrate(mParent);
|
vibrate(mParent);
|
||||||
int []decoded = null;
|
int []decoded = null;
|
||||||
switch(v.getId()) {
|
int id = v.getId();
|
||||||
case R.id.iv_power:
|
if (id == R.id.iv_power) {
|
||||||
decoded = irControl(KEY_POWER);
|
decoded = irControl(KEY_POWER);
|
||||||
break;
|
} else if (id == R.id.iv_up) {
|
||||||
|
|
||||||
case R.id.iv_up:
|
|
||||||
decoded = irControl(KEY_UP);
|
decoded = irControl(KEY_UP);
|
||||||
break;
|
} else if (id == R.id.iv_down) {
|
||||||
|
|
||||||
case R.id.iv_down:
|
|
||||||
decoded = irControl(KEY_DOWN);
|
decoded = irControl(KEY_DOWN);
|
||||||
break;
|
} else if (id == R.id.iv_left) {
|
||||||
|
|
||||||
case R.id.iv_left:
|
|
||||||
decoded = irControl(KEY_LEFT);
|
decoded = irControl(KEY_LEFT);
|
||||||
break;
|
} else if (id == R.id.iv_right) {
|
||||||
|
|
||||||
case R.id.iv_right:
|
|
||||||
decoded = irControl(KEY_RIGHT);
|
decoded = irControl(KEY_RIGHT);
|
||||||
break;
|
} else if (id == R.id.iv_ok) {
|
||||||
|
|
||||||
case R.id.iv_ok:
|
|
||||||
decoded = irControl(KEY_OK);
|
decoded = irControl(KEY_OK);
|
||||||
break;
|
} else if (id == R.id.iv_plus) {
|
||||||
|
|
||||||
case R.id.iv_plus:
|
|
||||||
decoded = irControl(KEY_PLUS);
|
decoded = irControl(KEY_PLUS);
|
||||||
break;
|
} else if (id == R.id.iv_minus) {
|
||||||
|
|
||||||
case R.id.iv_minus:
|
|
||||||
decoded = irControl(KEY_MINUS);
|
decoded = irControl(KEY_MINUS);
|
||||||
break;
|
} else if (id == R.id.iv_back) {
|
||||||
|
|
||||||
case R.id.iv_back:
|
|
||||||
decoded = irControl(KEY_BACK);
|
decoded = irControl(KEY_BACK);
|
||||||
break;
|
} else if (id == R.id.iv_home) {
|
||||||
|
|
||||||
case R.id.iv_home:
|
|
||||||
decoded = irControl(KEY_HOME);
|
decoded = irControl(KEY_HOME);
|
||||||
break;
|
} else if (id == R.id.iv_menu) {
|
||||||
|
|
||||||
case R.id.iv_menu:
|
|
||||||
decoded = irControl(KEY_MENU);
|
decoded = irControl(KEY_MENU);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
// send decoded integer array to IR emitter
|
// send decoded integer array to IR emitter
|
||||||
ConsumerIrManager irEmitter =
|
ConsumerIrManager irEmitter =
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ buildscript {
|
|||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
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
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/**************************************************************************************************
|
/**************************************************************************************************
|
||||||
Filename: ir_decode_jni.c
|
Filename: ir_decode_jni.c
|
||||||
Revised: Date: 2016-03-21
|
Revised: Date: 2016-03-21
|
||||||
Revision: Revision: 1.0
|
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
|
#if defined BOARD_ANDROID
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#elif (defined BOARD_PC) && (defined BOARD_PC_JNI)
|
#elif (defined BOARD_PC) && (defined BOARD_PC_JNI)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
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
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
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
|
Boundary Config XML file
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.29806.167
|
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">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="源文件">
|
<Filter Include="源文件">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
========================================================================
|
========================================================================
|
||||||
控制台应用程序:DecodeTestWin 项目概述
|
控制台应用程序:DecodeTestWin 项目概述
|
||||||
========================================================================
|
========================================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user