Skip to content

Commit ffec57a

Browse files
tychedeliacatilac
andauthored
Fixes for Raph (#126)
Co-authored-by: Moon Davé <moon@softmoon.world>
1 parent 616c6fe commit ffec57a

9 files changed

Lines changed: 572 additions & 381 deletions

File tree

Cargo.lock

Lines changed: 295 additions & 260 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/processing_input/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use bevy::input::mouse::{
66
AccumulatedMouseMotion, AccumulatedMouseScroll, MouseButton, MouseButtonInput, MouseMotion,
77
MouseScrollUnit, MouseWheel,
88
};
9+
use bevy::input::touch::TouchPhase;
910
use bevy::prelude::*;
1011
use bevy::window::CursorMoved;
1112

@@ -88,6 +89,8 @@ pub fn input_set_scroll(surface: Entity, x: f32, y: f32) -> error::Result<()> {
8889
x,
8990
y,
9091
window: surface,
92+
// todo: support touchscreen
93+
phase: TouchPhase::Moved,
9194
});
9295
Ok(())
9396
})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from mewnala import *
2+
3+
4+
def setup():
5+
size(200, 200)
6+
background(100, 0, 0)
7+
print(width)
8+
9+
def draw():
10+
pass
11+
12+
run()

0 commit comments

Comments
 (0)