(x, y, button, modifiers)
| 4413 | # this is where the keyboard keys are defined. |
| 4414 | @window.event |
| 4415 | def on_mouse_press(x, y, button, modifiers): |
| 4416 | Flag = True |
| 4417 | if mode.started: |
| 4418 | if len(mode.modalities[mode.mode])==2: |
| 4419 | for k in mode.modalities[mode.mode]: |
| 4420 | if k == 'arithmetic': |
| 4421 | Flag = False |
| 4422 | if Flag: |
| 4423 | if (button == pyglet.window.mouse.LEFT): |
| 4424 | mode.inputs[mode.modalities[mode.mode][0]] = True |
| 4425 | elif (button == pyglet.window.mouse.RIGHT): |
| 4426 | mode.inputs[mode.modalities[mode.mode][1]] = True |
| 4427 | update_input_labels() |
| 4428 | |
| 4429 | @window.event |
| 4430 | def on_key_press(symbol, modifiers): |
nothing calls this directly
no test coverage detected