Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Repost of "German Keyboard Bug + other Bugs #44

Open
ConTRoniiX opened this issue Aug 2, 2017 · 11 comments
Open

Repost of "German Keyboard Bug + other Bugs #44

ConTRoniiX opened this issue Aug 2, 2017 · 11 comments

Comments

@ConTRoniiX
Copy link

Hello,

I didn't get an answer on my last Issue, so I thought i should repost it.

Bugs I found for the german keyboard:

\ is instead ß. I write it like this: ALT GR + ß
@ is instead q. I write it like this: ALT GR + Q
[ is instead 8 and ] is instead 9. I write them like this: SHIFT + 8 and SHIFT + 9
| is instead <. I write it like this: ALT GR + <

I hope you can fix it. I found a way to get around the first error (not using the backslash), but the other ones are unreplacable.

ConTRoniiX

@lowlevl
Copy link
Collaborator

lowlevl commented Aug 2, 2017

I answered 38min ago on the other, I'll close it.

@lowlevl
Copy link
Collaborator

lowlevl commented Aug 2, 2017

You could use logic, To type [, you type SHIFT + 8, so you take the value of 8(0x25, Value found in the _asciimap) and you apply SHIFT so : [ -> 0x25|SHIFT

@lowlevl
Copy link
Collaborator

lowlevl commented Aug 2, 2017

Using this logic, you can guess the other ;)

@ConTRoniiX
Copy link
Author

ok, so ALT GR is just for example: "value of <|ALT GR"

@lowlevl
Copy link
Collaborator

lowlevl commented Aug 2, 2017

No, I couldn't do this because of Arduino Core limitations.. So i made the _altGrMap :
You count from 0(the first item in list is id 0) to what you want and you can apply an ALTGR by setting _altGrMap[] = true;

@ConTRoniiX
Copy link
Author

ok thanks, i'll try it

@ConTRoniiX
Copy link
Author

The characters I mentioned are already included:

  _altGrMap[126] = true; // ~
  _altGrMap[123] = true; // {
  _altGrMap[91] = true;  // [
  _altGrMap[93] = true;  // ]
  _altGrMap[125] = true; // }
  _altGrMap[92] = true;  // bslash
  _altGrMap[124] = true; // |
  _altGrMap[64] = true;  // |

And I wrote them for example like this;

Keyboard.print("\");

Did I do something wrong?
It still doesn't print those Characters

@lowlevl
Copy link
Collaborator

lowlevl commented Aug 7, 2017

Hi @ConTRoniiX, did you tried with all the chars ?

@ConTRoniiX
Copy link
Author

Yes, I did. And none of the ones I listed at the beginning is working.

@ConTRoniiX
Copy link
Author

Would be nice if you would help me, I'm still having the same problem.

No hate, I really love your project and I think it is awesome that you helped me so much at my past messages and you probably just missed my last one ;)

@lowlevl
Copy link
Collaborator

lowlevl commented Aug 29, 2017

Hi, yep I missed it:
'\' may not be fixable, because we apply the altGr on the key you use with altGr, for example for '\' you may fix it like this :

const uint8_t _asciimap[128] =
{
/* ... */
  <Hex code for 'ß'>, // bslash
/* ... */
};

void initAltGr() {
  _altFine = true;
  /* ... */
  _altGrMap[92] = true; // bslash
  /* ... */
}

Because you do 'ß' + altGr. This apply for all 'altGr keystrokes'.

For other, I need your complete .lang :D

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

No branches or pull requests

2 participants