1
0

Implement STICK, STICKEX

This commit is contained in:
otya128
2017-07-04 18:04:23 +09:00
parent b982e423b2
commit 5a5ae984e9
2 changed files with 63 additions and 8 deletions

View File

@@ -728,17 +728,17 @@ class BuiltinFunction
static void BEEP(PetitComputer p, DefaultValue!(int, false) beep, DefaultValue!(int, false) pitch, DefaultValue!(int, false) volume, DefaultValue!(int, false) pan)
{
}
static void STICK(PetitComputer p, DefaultValue!(int, false) mp, out int x, out int y)
static void STICK(PetitComputer p, DefaultValue!(int, false) mp, out double x, out double y)
{
//JOYSTICK?
x = 0;
y = 0;
auto s = p.stick(0);
x = s.x;
y = s.y;
}
static void STICKEX(PetitComputer p, DefaultValue!(int, false) mp, out int x, out int y)
static void STICKEX(PetitComputer p, DefaultValue!(int, false) mp, out double x, out double y)
{
//JOYSTICK?
x = 0;
y = 0;
auto s = p.stick(1);
x = s.x;
y = s.y;
}
static pure nothrow int RGB(int R, int G, int B, DefaultValue!(int, false) _)
{