📜  pygame 滚动事件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:20.979000             🧑  作者: Mango

代码示例1
if e.type == pygame.MOUSEBUTTONDOWN:
            if e.button == 4: scroll_y = min(scroll_y + 15, 0)
            if e.button == 5: scroll_y = max(scroll_y - 15, -300)