Skip to content
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

Win version possible? #4

Open
cobblepot1 opened this issue Apr 8, 2021 · 8 comments
Open

Win version possible? #4

cobblepot1 opened this issue Apr 8, 2021 · 8 comments

Comments

@cobblepot1
Copy link

Hi, I'm a Dumang user on Win 10 and I dislike the provided proprietary software because it doesn't work well with Dvorak. It doesn't read or reflect the OS keyboard layout setting. I'm just wondering if there is any chance you'll update this to work with Windows. I'm not a programmer so unable to help you other than testing, unfortunately.

@mayanez
Copy link
Owner

mayanez commented Apr 9, 2021

It should be possible to easily support it on Windows. I'll add it to my to-do list to look into this.

@cobblepot1
Copy link
Author

Great, look forward to it! The provided software is driving me crazy.

@mayanez
Copy link
Owner

mayanez commented May 10, 2021

I started looking into supporting Windows.

I had hoped this would be relatively painless since libusb is cross-platform. Unfortunately, hotplug support is missing on Windows (see libusb/libusb#86) which rules out using it for at least the sync tool. There do seem to be workarounds by directly invoking win32 apis (this project seems to follow that approach https://github.com/BusKill/buskill-app/blob/60f4730cf07f729bb2cb740df51861cc6744239c/src/packages/buskill/__init__.py#L65).

With regards to the config tool I'll need to investigate it a bit further. While libusb should be working for non-hotplug I am seeing strange behavior. Unfortunately, I'm quite new to developing on Windows so not sure how long it will take.

@cobblepot1
Copy link
Author

Hi, I wish I had the knowledge to contribute to troubleshooting this issue. I do appreciate your efforts and will wait patiently to see if you manage to get it working. I'm not sure if you have contacted the Dumang team, but they have responded to my emails in the past, so that is one option you might look into. Thanks!

@thekingofspain
Copy link

thekingofspain commented Sep 6, 2021

For windows, I found a few device capture event libraries, most of them are all based on the Interception library. This library caputures device events at a level that is lower than windows events. I do not know python, but looking over the code, the existing sync feature should be able to implemented with with this library (and then some).

The DuMang software feel out of favor for me when I realized i could not extend a key that is mapped to macro (like ctrl-left arrow, jump to the front the word) and then extend the macro to an optional key press (shift) such that the macro additional applies the option key (shift-ctrl-left-arrow, aka select to the front of word). Also the macros could not use mapped keys, which seemed odd (raw k up & down events vs DK6 k up & down events). I wanted to have a single, double, and tripple click set of keys, but the later two could not be achieved. A windows annoyance for me is the lack of a timeout feature on stickys keys, this library should be able to introduce that feature.

@mayanez
Copy link
Owner

mayanez commented Sep 6, 2021

You should be able to use that library, but not sure if there's a need. As I mentioned above, I think the answer lies in using the native win32 apis. It shouldn't be too bad, but unfortunately I don't have the time right now to be messing with Windows.

Re: the macro limitations I know there are some, but I don't think there's much we can do about them as they are inherent to the underlying firmware. We'd have to talk with DuMang about them. Short of rewriting the firmware I'm not sure there's much we can do in the meantime. If you'd like more advanced functionality with respect to macros I suggest using something like https://www.autohotkey.com/ if you're running Windows.

@quickfold
Copy link

I'll just mention again that if it would be of any help to contact the Dumang team, they have reliably responded to my emails. One address is lsq at beyondq.com. I see that @mayanez doesn't have time to work on this now, but maybe someone else with the skills will. I'm still using this keyboard with windows and would love progress on this. For me the main problem is trying to implement complex layer macros with tap/hold or double tap, which are hard to do on the Dumang software.

@thekingofspain
Copy link

thekingofspain commented Sep 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants