Skip to content

Commit

Permalink
Merge pull request #197 from Cebion/uconsole
Browse files Browse the repository at this point in the history
Initial uconsole work
  • Loading branch information
kloptops authored Dec 8, 2024
2 parents 4140622 + 8953010 commit 7aacdf4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PortMaster/device_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ elif [ -d "/usr/trimui" ]; then
# TrimUI Smart Pro
CFW_NAME="TrimUI"
CFW_VERSION="$(cat /etc/version)"
elif lsusb | grep -q "1eaf:0024"; then
# uConsole
CFW_NAME="Debian GNU/Linux"
CFW_VERSION=$(grep -a '^VERSION_ID=' /etc/os-release | cut -d'"' -f 2)
DEVICE_NAME="uConsole"
else
# AmberELEC / EmuELEC
CFW_NAME=$(grep -a '^NAME=".*"' /etc/os-release | cut -d'"' -f 2)
Expand Down
2 changes: 2 additions & 0 deletions PortMaster/gamecontrollerdb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1794,3 +1794,5 @@ xinput,XInput Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,
050000005e040000e0020000ff070000,Xbox One Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b10,x:b2,y:b3,platform:iOS,
050000005e040000130b0000df870001,Xbox Series X Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,misc1:b10,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b2,y:b3,platform:iOS,
050000005e040000130b0000ff870001,Xbox Series X Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,misc1:b11,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b10,x:b2,y:b3,platform:iOS,
# uConsole
03000000af1e00002400000010010000,ClockworkPI uConsole,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftx:a0,lefty:a1,platform:Linux,
12 changes: 12 additions & 0 deletions PortMaster/libgl_uConsole.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# NOTE: This script uses $PWD to setup the GL4ES directory!
# Before calling this, ensure you are on the port root directory, e.g.:
# > gamedir="/$directory/ports/stardewvalley"
# > cd "$gamedir/"

# This sets up the standard libs directory.
if [ -d "$PWD/libs.$DEVICE_ARCH" ]; then
export LD_LIBRARY_PATH="$PWD/libs.$DEVICE_ARCH:$LD_LIBRARY_PATH"
elif [ -d "$PWD/libs" ]; then
export LD_LIBRARY_PATH="$PWD/libs:$LD_LIBRARY_PATH"
fi

0 comments on commit 7aacdf4

Please sign in to comment.