UP 模拟器 加入key的模拟支持

This commit is contained in:
JiXieShi committed 2024-06-22 22:51:58 +08:00
1 parent 0c7c6bb1e9
commit 5876461531
9 files changed
+201 -35

No files matched your search

+2
View File
@@ -37,6 +37,7 @@ void drawOledPixel(int oledX, int oledY) {
void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height) {
BeginBatchDraw();
cleardevice();
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
@@ -47,6 +48,7 @@ void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height) {
}
}
}
EndBatchDraw();
}