forked from mirrors/qmk_firmware
kle2info: trim down x and y output
fixes quirks with float implementation. before: {"label":"Esc", "x":0.66, "y":1.45}, {"label":"!", "x":1.6600000000000001, "y":1.45} after: {"label":"Esc", "x":0.66, "y":1.45}, {"label":"!", "x":1.66, "y":1.45}
This commit is contained in:
parent
a47915d2d2
commit
5c666398d5
1 changed files with 2 additions and 2 deletions
|
@ -110,8 +110,8 @@ class KLE2xy(list):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
current_key['name'] = key
|
current_key['name'] = key
|
||||||
current_key['row'] = current_row
|
current_key['row'] = round(current_row, 2)
|
||||||
current_key['column'] = current_col
|
current_key['column'] = round(current_col, 2)
|
||||||
|
|
||||||
# Determine the X center
|
# Determine the X center
|
||||||
x_center = (current_key['width'] * self.key_width) / 2
|
x_center = (current_key['width'] * self.key_width) / 2
|
||||||
|
|
Loading…
Reference in a new issue