Comments (10)
Mentioning @avaidyam since he also checked out the DFR* frameworks and might have a clue.
from touchbardemoapp.
It does have this behavior for the on-screen touchbar, doesn't it? I can take a look at it but I don't have any iOS devices.
from touchbardemoapp.
Well, the Touch Bar works fine, at least when you use the physical keyboard, not when using our iOS keyboard or the macOS keyboard viewer. Just open the keyboard viewer and display the on-screen Touch Bar and try holding Fn on the keyboard viewer. No iPad needed (it does exactly the same as the keyboard viewer anyway).
from touchbardemoapp.
Ah, I see what you mean. Unfortunately, I think that's a limitation of the emulated keyboard(s) -- when pressing the Fn key, it's not sending a flags changed
event but when another key is pressed, it then sends the equivalent Fn+Key
event. I can look into that more later. Exam in 15 minutes. 😂
from touchbardemoapp.
Actually it does generate a flags changed event. That's why toggling the on-screen Touch Bar does work, even in the keyboard viewer and our virtual iPad keyboard.
The physical keyboard generates the exact same flags changed event, except somehow it also "notifies" the Touch Bar agent to show the function row (or whatever you've setup to show when holding Fn). Perhaps this is done by the TouchBarUserDevice, or maybe the Touch Bar agent is monitoring this by itself. Perhaps there is a private API that we can use to toggle the Touch Bar "secondary state", but so far we've been unable to find it.
Anyway, good luck on your exam! 😄
from touchbardemoapp.
Ah I see. I'll take a look at it now, on account of me probably acing that exam! I'll report back in a bit, lol. 😆
from touchbardemoapp.
So I believe it has to do with TouchBarAgent.FnKey
and TouchBarAgent.UIServer
, but the TouchBarAgent
binary is primarily Swift. Hopper doesn't do a great job of decompiling into Swift right now, so that's going to be very hard.
from touchbardemoapp.
found this, worth to have a look https://red-sweater.com/touche/
from touchbardemoapp.
@sonvirgo Disassembling that app shows nothing new or different from this one.
@robbertkl We could skip a step or two and use the Xcode method which is the IDE*Simulator
class from the DRFSupport.framework
.
from touchbardemoapp.
@sonvirgo That app has exactly the same behavior when holding Fn on the keyboard viewer: it does not work.
@avaidyam Yeah, we also ran into the Hopper/Swift issue. How would the "Xcode method" help here? Even Xcode's "Show Touch Bar" does not show the function row when holding Fn on the keyboard viewer.
from touchbardemoapp.
Related Issues (20)
- SUGGESTION: Trackpad Support HOT 1
- swiping HOT 2
- iOS App crashes on iPad 2 (9.3.5) HOT 1
- Doesn't work on High Sierra HOT 2
- (enhancement) Option to drag the TouchBar around HOT 1
- Client: "Address already in use” error
- Keyboard works - touchbar does not HOT 5
- Broken on 16inch MacBook Pro
- Freezes
- Touchbar via Raspberry HOT 1
- New Mac support needed ! HOT 1
- Touch Bar Server "crashes" touchbar HOT 3
- [Suggestion] Allow physical function keys to control on screen touch bar HOT 1
- ios app link HOT 1
- Does not show up on 10.2.2 (16C67) HOT 2
- Does not show up on 10.12.3 (16D32) HOT 12
- Every key EXCEPT fn works. Uninstall? HOT 5
- Latest version still stops working after some time
- [suggestion] HOT 1
- [Suggestion] Adaptive iPhone small screen & Add touchpad mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from touchbardemoapp.