René's URL Explorer Experiment


Title: Handling unknown keys by akorevaar · Pull Request #75 · gvalkov/python-evdev · GitHub

Open Graph Title: Handling unknown keys by akorevaar · Pull Request #75 · gvalkov/python-evdev

X Title: Handling unknown keys by akorevaar · Pull Request #75 · gvalkov/python-evdev

Description: I'm using a controller with plenty of unknown keys, so added in this code to handle the unknown key codes by adding the entry to the keys dictionary, with the name being the hex code for the key.

Open Graph Description: I'm using a controller with plenty of unknown keys, so added in this code to handle the unknown key codes by adding the entry to the keys dictionary, with the name being the hex code for the key.

X Description: I'm using a controller with plenty of unknown keys, so added in this code to handle the unknown key codes by adding the entry to the keys dictionary, with the name being the hex code for the key.

Opengraph URL: https://github.com/gvalkov/python-evdev/pull/75

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:6ef55d23-caff-a22e-738c-18ec159953b1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5AA:2265CE:688C127:8855531:697573DA
html-safe-nonce5866ccca40e885ed82519215f002b85ce0efe83713e845a82549b9619fc11742
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUFBOjIyNjVDRTo2ODhDMTI3Ojg4NTU1MzE6Njk3NTczREEiLCJ2aXNpdG9yX2lkIjoiNjIyMDkzNDcwNDY0ODI1NDQyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdacc0a4ee19888d450635f05b415fa57d2d4ac733227581dee79a17cee4af56d
hovercard-subject-tagpull_request:164981152
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/gvalkov/python-evdev/75/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4ff0fc96be40bb7e50d03889a46f91c41a1fe923592285dc7fe10700341478f3/gvalkov/python-evdev/pull/75
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4ff0fc96be40bb7e50d03889a46f91c41a1fe923592285dc7fe10700341478f3/gvalkov/python-evdev/pull/75
og:image:altI'm using a controller with plenty of unknown keys, so added in this code to handle the unknown key codes by adding the entry to the keys dictionary, with the name being the hex code for the key.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameakorevaar
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/gvalkov/python-evdev git https://github.com/gvalkov/python-evdev.git
octolytics-dimension-user_id190997
octolytics-dimension-user_logingvalkov
octolytics-dimension-repository_id4314068
octolytics-dimension-repository_nwogvalkov/python-evdev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id4314068
octolytics-dimension-repository_network_root_nwogvalkov/python-evdev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgvalkov%2Fpython-evdev%2Fpull%2F75
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgvalkov%2Fpython-evdev%2Fpull%2F75
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=gvalkov%2Fpython-evdev
Reloadhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75
Reloadhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75
Reloadhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75
gvalkov https://patch-diff.githubusercontent.com/gvalkov
python-evdevhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgvalkov%2Fpython-evdev
Fork 119 https://patch-diff.githubusercontent.com/login?return_to=%2Fgvalkov%2Fpython-evdev
Star 371 https://patch-diff.githubusercontent.com/login?return_to=%2Fgvalkov%2Fpython-evdev
Code https://patch-diff.githubusercontent.com/gvalkov/python-evdev
Issues 53 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/issues
Pull requests 1 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pulls
Actions https://patch-diff.githubusercontent.com/gvalkov/python-evdev/actions
Projects 0 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/projects
Security 0 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/security
Insights https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pulse
Code https://patch-diff.githubusercontent.com/gvalkov/python-evdev
Issues https://patch-diff.githubusercontent.com/gvalkov/python-evdev/issues
Pull requests https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pulls
Actions https://patch-diff.githubusercontent.com/gvalkov/python-evdev/actions
Projects https://patch-diff.githubusercontent.com/gvalkov/python-evdev/projects
Security https://patch-diff.githubusercontent.com/gvalkov/python-evdev/security
Insights https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fgvalkov%2Fpython-evdev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fgvalkov%2Fpython-evdev%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#issue-comment-box
akorevaarhttps://patch-diff.githubusercontent.com/akorevaar
gvalkov:mainhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/tree/main
akorevaar:masterhttps://patch-diff.githubusercontent.com/akorevaar/python-evdev/tree/master
Handling unknown keys https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#top
akorevaarhttps://patch-diff.githubusercontent.com/akorevaar
gvalkov:mainhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/tree/main
akorevaar:masterhttps://patch-diff.githubusercontent.com/akorevaar/python-evdev/tree/master
Conversation 0 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75
Commits 2 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75/commits
Checks 0 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75/checks
Files changed https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75/files
Please reload this pagehttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/akorevaar
akorevaarhttps://patch-diff.githubusercontent.com/akorevaar
Jan 24, 2018https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#issue-291384045
Please reload this pagehttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75
January 25, 2018 10:52https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#commits-pushed-17218dd
Report unknown keys witha numeric codehttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75/commits/17218ddd0689110e88c7becc36cadd2be9b4c370
17218ddhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75/commits/17218ddd0689110e88c7becc36cadd2be9b4c370
Fixing formattinghttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75/commits/68da5f30c6563505e990d116019c8945b84212b9
68da5f3https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75/commits/68da5f30c6563505e990d116019c8945b84212b9
https://patch-diff.githubusercontent.com/gvalkov
gvalkovhttps://patch-diff.githubusercontent.com/gvalkov
force-pushedhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/99c84adf66fb72633e097cca18bc6ffe9732632c..34a7535e8e160c78bf923adc48a1f1f6bcdcaae8
99c84adhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/99c84adf66fb72633e097cca18bc6ffe9732632c
34a7535https://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/34a7535e8e160c78bf923adc48a1f1f6bcdcaae8
Compare https://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/99c84adf66fb72633e097cca18bc6ffe9732632c..34a7535e8e160c78bf923adc48a1f1f6bcdcaae8
September 1, 2018 17:48https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#event-1821973261
https://patch-diff.githubusercontent.com/foxsam21
foxsam21https://patch-diff.githubusercontent.com/foxsam21
May 20, 2019 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#ref-issue-333377303
KeyError in events.py with JoyCon #91 https://patch-diff.githubusercontent.com/gvalkov/python-evdev/issues/91
https://patch-diff.githubusercontent.com/gvalkov
gvalkovhttps://patch-diff.githubusercontent.com/gvalkov
force-pushedhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/9450820102c7f8983576579c6c06650caa48cea1..2fa3d246e1116f3301ee935dbecdc81ffc8a709d
9450820https://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/9450820102c7f8983576579c6c06650caa48cea1
2fa3d24https://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/2fa3d246e1116f3301ee935dbecdc81ffc8a709d
Compare https://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/9450820102c7f8983576579c6c06650caa48cea1..2fa3d246e1116f3301ee935dbecdc81ffc8a709d
January 11, 2020 23:01https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#event-2940890879
https://patch-diff.githubusercontent.com/gvalkov
gvalkovhttps://patch-diff.githubusercontent.com/gvalkov
force-pushedhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/ca8fda6d68f9b9b86e31f6041ad9183561b6a823..414039ca9d9e62b23e0357d7356ecc0e8ea80f20
ca8fda6https://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/ca8fda6d68f9b9b86e31f6041ad9183561b6a823
414039chttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/414039ca9d9e62b23e0357d7356ecc0e8ea80f20
Compare https://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/ca8fda6d68f9b9b86e31f6041ad9183561b6a823..414039ca9d9e62b23e0357d7356ecc0e8ea80f20
February 18, 2024 21:12https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#event-11841831743
https://patch-diff.githubusercontent.com/gvalkov
gvalkovhttps://patch-diff.githubusercontent.com/gvalkov
force-pushedhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/69371799bb59d5e3ff7f900e4006a989ba19da0f..4ca0a8b41915650e10fbdd4114519c9183406940
6937179https://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/69371799bb59d5e3ff7f900e4006a989ba19da0f
4ca0a8bhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/4ca0a8b41915650e10fbdd4114519c9183406940
Compare https://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/69371799bb59d5e3ff7f900e4006a989ba19da0f..4ca0a8b41915650e10fbdd4114519c9183406940
January 22, 2025 17:55https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#event-16032865639
https://patch-diff.githubusercontent.com/gvalkov
gvalkovhttps://patch-diff.githubusercontent.com/gvalkov
force-pushedhttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/eda8be2388cc5c4673f11736dfd528ff4279aaae..78650f8f50f6a51fe98af9af54d42a121f602e5e
eda8be2https://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/eda8be2388cc5c4673f11736dfd528ff4279aaae
78650f8https://patch-diff.githubusercontent.com/gvalkov/python-evdev/commit/78650f8f50f6a51fe98af9af54d42a121f602e5e
Compare https://patch-diff.githubusercontent.com/gvalkov/python-evdev/compare/eda8be2388cc5c4673f11736dfd528ff4279aaae..78650f8f50f6a51fe98af9af54d42a121f602e5e
February 2, 2025 20:25https://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75#event-16153590084
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgvalkov%2Fpython-evdev%2Fpull%2F75
Please reload this pagehttps://patch-diff.githubusercontent.com/gvalkov/python-evdev/pull/75
https://patch-diff.githubusercontent.com/akorevaar
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.