asinha94 / asos

My x86-32 hobby Operating System!
0 stars 0 forks source link

Keyboard type rate is very high #13

Closed asinha94 closed 3 years ago

asinha94 commented 4 years ago

When I type in QEMU or Bochs it seems to be repeating keys indicating that the repeat rate is quite high or the ignore ms is too low. This should be looked into once a userspace is up and running

asinha94 commented 4 years ago

It could be related, but on this line here for some reason we explicitly set the bit which tells us if a multi-char code was released, to high, which I don't remember doing. Some investigation would be nice

asinha94 commented 4 years ago

Nvm I realized I did this because of the location of the scan-code. In my scan-code table I wanted to avoid as much duplication as possible. So a pressed/released scan-code will get the same entry from the table. The problem with the multi-char codes is that the second-digit overlaps with some of the single-char scan-codes, so I purposefully use the released scan-code variant which has the released bit set. I should explain this in the code