-
Notifications
You must be signed in to change notification settings - Fork 0
Add Hori Pokken Tournament DX Pro Pad gamepad #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
436c7e3
642d78b
1566f54
0980875
0468f14
7c8dd67
01cca2e
3f9637e
483c1bb
674e081
d135692
0ef3b8c
4e11691
7ec6aee
164638b
6852946
c2164bf
4f82f99
b7e5701
67fdcdd
d86d943
c3517cf
4e867b1
dbcb77c
38bda81
765c868
423f6fb
e0597ce
228d980
62f18d4
c5b4df0
bdc5763
3de06ff
5e25aec
a2cf171
3b612dd
283585d
69c2ca0
8f2ddc0
ab9a5e8
4256db5
da332bb
57dbe57
9316dec
cc9f777
382d9fc
dbcf31a
11dffca
9f8d74b
09248ae
39434f7
a749acf
94c1c78
a76be9a
8fe15eb
b56880b
8adb15e
5a757b8
e72ff9c
adba7f2
0957775
17b1c37
fc4b33c
f83dfc6
55f1a15
664fac2
3d63fe0
dfaef3e
6f3c4ed
b1f89e2
54e2bd1
57ce0c0
378f2da
eb831f7
c56329f
f24c628
721b575
5051f08
e6e422a
d4ab609
a2ae8f6
6555d47
97f5c0d
d7a95bd
25915d3
ff1b4c4
006dd4c
6d96b98
a972cc7
a988d52
eed48fc
25f9040
e5abc00
81d89fd
87ca9fd
232c738
e15eac7
ae51c99
4ebc045
d37c278
1e9b11a
1867ddf
bb883b0
27ee867
1694dc5
6e3d67e
c0bbd65
d81ebb2
037d6a1
16a690b
b1e3427
41e5b5b
e1f095a
3bc736f
e5a5fa2
b7933e4
5a48f0f
86e9ad3
1344003
4c9b8da
99c8ec9
5b4efa3
3a72a91
f81dedb
3418518
aa9cc41
d1ed3cb
01700b1
45e17cc
47c7bf5
9d0c1c1
9b669d7
80abcd3
deba57c
74186d4
655f8c1
0b349b0
30cb02c
9055df0
b1e4090
dc24d55
4d6c3c7
b1759cf
9d09945
fac1895
2f62932
c5d63b2
327f2e9
8bab24a
c5615f9
4415da1
5158d70
075c154
380bc73
b436c96
b4001f8
f1d4f7c
db939db
6cc3a93
15b5e9f
6b718dc
a236aa5
a5809fd
414eaee
0f4081f
a27ff22
3756444
4672f15
3e9c16a
3999c30
915da07
b11c129
bc6d1fc
c3c4022
5cce4de
08715f7
920dc24
57c8ab1
4719cab
cfc2bff
c749815
f3a69a9
1a72d8e
cb43b1e
35377db
ea4546b
aaae691
7c6a57b
6aa2a7e
b67b250
9e4f34d
bb9a759
e9d11d9
c51c6ad
ced0604
dba6588
c2f0f3e
793346b
493707d
a453871
3637a08
1b89a5d
2ab3df7
a74711e
d0e51ed
15ec105
bddb30e
c7636cc
0aea721
26f70da
6c9d4e2
9a70746
d04bbc4
da179de
dfb332a
f02a47c
773a186
dc9ea05
1275aac
724b1e1
90d258f
eafa1a5
f12b7db
ace360b
722f8e6
860ac45
8834de5
62d3999
eb76d84
f2ca0c9
5905f86
3266af4
a6dbad6
7b1ea55
2d306e1
13f70a6
8faeddf
e7aecb6
27dfb51
e84a526
fbb3ee7
c80b3bb
e64e724
56c8571
3e8bebe
010c68e
bf5fd59
6a63ec5
c9af976
f966f2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Data check | ||
on: | ||
push: | ||
branches: [master] | ||
jobs: | ||
duplicates: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
python duplicates.py |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,51 @@ | ||
##SDL_GameControllerDB | ||
# SDL_GameControllerDB | ||
|
||
A community sourced database of game controller mappings to be used with SDL2 and SDL3 Game Controller functionality. | ||
|
||
A community source database of game controller mappings to be used with SDL2 Game Controller functionality. | ||
# Usage | ||
Download gamecontrollerdb.txt, place it in your app's directory and load it. | ||
|
||
####Usage: | ||
SDL2: | ||
```c | ||
SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt"); | ||
``` | ||
|
||
SDL3: | ||
```c | ||
SDL_AddGamepadMappingsFromFile("gamecontrollerdb.txt"); | ||
``` | ||
|
||
Download gamecontrollerdb.txt, place it in your app's directory and load with: | ||
The database is compatible with SDL v2.0.10 and newer. | ||
|
||
## Create New Mappings | ||
A mapping looks like this: | ||
``` | ||
SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt"); | ||
030000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X, | ||
``` | ||
It includes controller GUID (`030000004c050000c405000000010000`), a name (`PS4 Controller`), button / axis mappings (`leftshoulder:b4`) and a platform (`platform:Mac OS X`). | ||
|
||
Please make sure to check that the name is a good description of the controller. If relevant, include the controller's name and model number. | ||
|
||
## Mapping Guide | ||
|
||
####Creating new mappings: | ||
 | ||
|
||
To create new mappings, you can use the controllermap utility provided with | ||
SDL2, or using Steam's Big Picture mode, configure your joystick and then | ||
look in config/config.vdf in your Steam installation directory for the | ||
SDL_GamepadBind entry. | ||
## Mapping Tools | ||
There are a few different tools that let you create mappings. | ||
|
||
### [SDL2 Gamepad Tool](http://www.generalarcade.com/gamepadtool/) | ||
Third party cross-platform tool with GUI (Windows, macOS and Linux) | ||
|
||
*While convenient, this tool has fallen out of date as SDL has amended and added new features for gamepad support (see [#478](https://github.com/gabomdq/SDL_GameControllerDB/issues/476)). Maps authored with this tool require maintainer scrutiny to ensure they will not break support for explicit mappings the SDL project provides.* | ||
|
||
### [SDL](https://github.com/libsdl-org/SDL/releases/latest) | ||
[testcontroller (SDL3)](https://github.com/libsdl-org/SDL/blob/main/test/testcontroller.c) and [controllermap (SDL2)](https://github.com/libsdl-org/SDL/blob/SDL2/test/controllermap.c) utilities are the official tools to create these mappings on all SDL supported platforms (Windows, Mac, Linux, iOS, Android, etc). | ||
|
||
``` | ||
"SDL_GamepadBind" "030000004c050000c405000000010000,PS4 Controller,platform:Windows,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3," | ||
``` | ||
|
||
####References: | ||
## Resources | ||
|
||
* [SDL2](http://www.libsdl.org) | ||
* [SDL_GameControllerAddMappingsFromFile](http://wiki.libsdl.org/SDL_GameControllerAddMappingsFromFile) | ||
* [SDL](http://www.libsdl.org) | ||
* [SDL_GameControllerAddMappingsFromFile](http://wiki.libsdl.org/SDL_GameControllerAddMappingsFromFile) |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,26 @@ | ||||||||||
# SPDX-License-Identifier: Zlib | ||||||||||
|
||||||||||
import difflib | ||||||||||
import sys | ||||||||||
|
||||||||||
CROSS_PLATFORM=False | ||||||||||
|
||||||||||
cdict = {} | ||||||||||
for i, l in enumerate(open("gamecontrollerdb.txt")): | ||||||||||
l = l.strip() | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E741: ambiguous variable name 'l' ℹ️ Expand to see all @sonatype-lift commandsYou can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Note: When talking to LiftBot, you need to refresh the page to see its response. Help us improve LIFT! (Sonatype LiftBot external survey) Was this a good recommendation for you? Answering this survey will not impact your Lift settings. [ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ] |
||||||||||
if l.startswith("#") or not l: | ||||||||||
continue | ||||||||||
|
||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. W293: blank line contains whitespace ℹ️ Expand to see all @sonatype-lift commandsYou can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Note: When talking to LiftBot, you need to refresh the page to see its response. Help us improve LIFT! (Sonatype LiftBot external survey) Was this a good recommendation for you? Answering this survey will not impact your Lift settings. [ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ] |
||||||||||
c = l.split(",") | ||||||||||
key = tuple([c[0]]+[ce for ce in c[1:] if "platform:" in ce]) | ||||||||||
if CROSS_PLATFORM: | ||||||||||
key = c[0] | ||||||||||
|
||||||||||
if key in cdict: | ||||||||||
print("Duplicate:", c[1], "at line", i + 1) | ||||||||||
out = list(difflib.unified_diff(cdict[key], sorted(c), n=0))[3:] | ||||||||||
out = [o for o in out if not o.startswith("@@")] | ||||||||||
print("\t", " ".join(out)) | ||||||||||
if not CROSS_PLATFORM: | ||||||||||
sys.exit(1) | ||||||||||
cdict[key] = sorted(c) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. W292: no newline at end of file ℹ️ Expand to see all @sonatype-lift commandsYou can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Note: When talking to LiftBot, you need to refresh the page to see its response. Help us improve LIFT! (Sonatype LiftBot external survey) Was this a good recommendation for you? Answering this survey will not impact your Lift settings. [ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E225: missing whitespace around operator
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
@sonatype-lift ignore
@sonatype-lift ignoreall
@sonatype-lift exclude <file|issue|path|tool>
file|issue|path|tool
from Lift findings by updating your config.toml fileNote: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]