Skip to content

Commit e79a6ba

Browse files
committed
Merge branch 'opaque_keyboard_in_aspice'
2 parents d000bd2 + d093971 commit e79a6ba

21 files changed

+381
-503
lines changed

BUILDING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
- You may have to select the "Android private libraries" entry in
5454
Project Properties->Java Build Path->Order and Export
5555
if you have it.
56+
- Enable requesting the RECORD_AUDIO permission in AndroidManifest.xml with the following sed command:
57+
sed -i 's/<!--RECORD_AUDIO-->/<uses-permission android:name="android.permission.RECORD_AUDIO"><\/uses-permission>/g' AndroidManifest.xml
5658

5759
Please inform me if (6) needs to be expanded (i.e. if you needed to do
5860
anything else in addition to the above.

eclipse_projects/Opaque/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
1414
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
1515
<uses-permission android:name="android.permission.RECORD_AUDIO"></uses-permission>
16+
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
17+
<uses-feature android:name="android.hardware.microphone" android:required="false"/>
1618

1719
<supports-screens
1820
android:xlargeScreens="true"

eclipse_projects/Opaque/jni/src/android/android-io.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,12 @@ JNIEXPORT void JNICALL
109109
Java_com_undatech_opaque_SpiceCommunicator_SpiceKeyEvent(JNIEnv * env, jobject obj, jboolean down, jint hardware_keycode) {
110110
SpiceDisplay* display = global_display;
111111
SpiceDisplayPrivate* d = SPICE_DISPLAY_GET_PRIVATE(display);
112-
int scancode;
113112

114113
SPICE_DEBUG("%s %s: keycode: %d", __FUNCTION__, "Key", hardware_keycode);
115114

116115
if (!d->inputs)
117116
return;
118117

119-
scancode = win32key2spice(hardware_keycode);
120-
//scancode = hardware_keycode;
121118
if (down) {
122119
send_key(display, hardware_keycode, 1);
123120
} else {

eclipse_projects/Opaque/src/com/undatech/opaque/SpiceCommunicator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import android.os.Handler;
3131

3232
import com.gstreamer.GStreamer;
33-
import com.undatech.opaque.input.KeycodeMap;
3433
import com.undatech.opaque.input.RemoteKeyboard;
3534
import com.undatech.opaque.input.RemoteSpicePointer;
3635

@@ -305,7 +304,6 @@ private void sendModifierKeys(boolean keyDown) {
305304
}
306305

307306
public void writeKeyEvent(int key, int metaState, boolean keyDown) {
308-
// Just updates the meta state for now.
309307
if (keyDown) {
310308
remoteMetaState = metaState;
311309
sendModifierKeys (true);

eclipse_projects/Opaque/src/com/undatech/opaque/input/KeycodeMap.java

Lines changed: 0 additions & 343 deletions
This file was deleted.

0 commit comments

Comments
 (0)