Implementing Neo2 - Modifier keys

All development related issues welcome

Moderator: Moderator Team

Post Reply
philipp.ludwig
Posts: 6
Joined: Wed Dec 02, 2020 10:12 am

Implementing Neo2 - Modifier keys

Post by philipp.ludwig »

Hello,

I am new to ReactOS development and I have been looking into implementing the Neo2 layout (https://www.neo-layout.org/), because that is what I use mainly. I started by copying the implementation of Neo 1.2 in ReactOs and updated the letter keys, which worked fine.

However, I am struggling now to get symbols like {, (, [, etc. to work. The thing is that Neo2 utilizes Caps Lock as a modifier key, e.g. pressing Caps Lock + a would get you {.

I have looked at other keyboard layouts, but could not find anything related to it. Any hints on how to implement this? Thanks!
learn_more
Developer
Posts: 246
Joined: Fri Dec 19, 2014 10:00 pm

Re: Implementing Neo2 - Modifier keys

Post by learn_more »

Does your layout toggle caps lock?
Or does it behave like shift?

Does it work on windows?

Did you try to use the Neo2 source code in ReactOS?
(or even the compiled stuff?)
https://git.neo-layout.org/neo/neo-layo ... 2/kbdgr2.c
philipp.ludwig
Posts: 6
Joined: Wed Dec 02, 2020 10:12 am

Re: Implementing Neo2 - Modifier keys

Post by philipp.ludwig »

Well, now I feel like a fool - I did not try to use the Windows driver. So I did that by putting the DLL into system32, but this does not work sadly (it does under Windows).

I tried to include the source, but could not compile it due to errors like

Code: Select all

In file included from ../dll/keyboard/kbdgneo2/kbdgr2.h:9,
                 from ../dll/keyboard/kbdgneo2/kbdgneo2.c:10:
../sdk/include/ndk/kbd.h:21:18: error: redefinition of 'struct _VK_TO_BIT'
   typedef struct _VK_TO_BIT {
To answer your other question, with this layout the Caps Lock key is supposed to behave like AltGr. The original Caps Lock functionality is implemented in Neo2 by pressing both Shift keys at the same time.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests