keybrd library is an open source library for creating custom-keyboard firmware.
選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。
123456789101112131415161718192021222324252627282930 |
- #include "Code_AutoShift.h"
-
- bool Code_AutoShift::isShifted() const
- {
- //if a shift key is pressed return true else return false
- for (uint8_t i = 0; i < shiftCount; i++)
- {
- if (ptrsShifts[i]->isPressed())
- {
- return true;
- }
- }
- return false;
- }
-
- void Code_AutoShift::releaseAllShifts() const
- {
- for (uint8_t i = 0; i < shiftCount; i++)
- {
- ptrsShifts[i]->unpress();
- }
- }
-
- void Code_AutoShift::restoreAllShifts() const
- {
- for (uint8_t i = 0; i < shiftCount; i++)
- {
- ptrsShifts[i]->restorePressed();
- }
- }
|