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

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

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();
}