Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
import com.augmentos.augmentos_core.audio.Lc3Player;
import com.google.gson.Gson;
import com.augmentos.smartglassesmanager.cpp.L3cCpp;
import com.augmentos.augmentos_core.smarterglassesmanager.eventbusmessages.ButtonPressEvent;
import com.augmentos.augmentos_core.smarterglassesmanager.eventbusmessages.BatteryLevelEvent;
import com.augmentos.augmentos_core.smarterglassesmanager.eventbusmessages.CaseEvent;
import com.augmentos.augmentos_core.smarterglassesmanager.eventbusmessages.BrightnessLevelEvent;
Expand Down Expand Up @@ -3281,13 +3282,10 @@ private void decodeProtobufs(byte[] protobufBytes, String packetHex) {
break;
case BUTTON_EVENT: {
final ButtonEvent buttonEvent = glassesToPhone.getButtonEvent();
Log.d(TAG, "buttonEvent: " + buttonEvent.toString());
// buttonEvent.getButton().getNumber()
// EventBus.getDefault().post(new ButtonPressEvent(
// smartGlassesDevice.deviceModelName,
// buttonId,
// pressType,
// timestamp));
Log.d(TAG, "Received Button Event: " + buttonEvent.toString());
final ButtonEvent.Button button = buttonEvent.getButton();
final ButtonEvent.Event event = buttonEvent.getEvent();
EventBus.getDefault().post(new ButtonPressEvent(smartGlassesDevice.deviceModelName, button.name(), event.name()));
}
break;
case HEAD_GESTURE: {
Expand Down
Loading
Loading