25
25
`adafruit_hid.keyboard_layout_fr.KeyboardLayoutFR`
26
26
=======================================================
27
27
28
- * Author(s): Dan Halbert
28
+ * Author(s): Dan Halbert, Neradoc
29
29
"""
30
30
31
- #from .keycode import Keycode
32
31
from adafruit_hid .keycode import Keycode
33
32
34
33
@@ -185,7 +184,7 @@ class KeyboardLayoutFR:
185
184
+ ALTGR + b'\x23 ' # |
186
185
+ ALTGR + b'\x2e ' # }
187
186
+ ALTGR + b'\x19 ' # ~ TODO
188
- b'\x00 \x00 ' # DEL
187
+ b'\x00 \x4c ' # TODO DEL
189
188
)
190
189
191
190
def __init__ (self , keyboard ):
@@ -194,7 +193,6 @@ def __init__(self, keyboard):
194
193
:param keyboard: a Keyboard object. Write characters to this keyboard when requested.
195
194
196
195
Example::
197
-
198
196
kbd = Keyboard()
199
197
layout = KeyboardLayoutFR(kbd)
200
198
"""
@@ -209,7 +207,6 @@ def write(self, string):
209
207
(such as some control characters).
210
208
211
209
Example::
212
-
213
210
# Write abc followed by Enter to the keyboard
214
211
layout.write('abc\\ n')
215
212
"""
@@ -232,7 +229,6 @@ def keycodes(self, char):
232
229
:raises ValueError: if ``char`` is not ASCII or there is no keycode for it.
233
230
234
231
Examples::
235
-
236
232
# Returns (Keycode.TAB,)
237
233
keycodes('\t ')
238
234
# Returns (Keycode.A,)
@@ -253,7 +249,6 @@ def keycodes(self, char):
253
249
254
250
def _char_to_keycode (self , char ):
255
251
"""Return the HID keycode for the given ASCII character, with the SHIFT_FLAG possibly set.
256
-
257
252
If the character requires pressing the Shift key, the SHIFT_FLAG bit is set.
258
253
You must clear this bit before passing the keycode in a USB report.
259
254
"""
0 commit comments