Tried to add VS2003 support...

This commit is contained in:
Vulpovile
2021-03-18 23:22:37 -07:00
parent 7ea74a3980
commit 239f7b8fa8
12 changed files with 734 additions and 15 deletions

View File

@@ -69,6 +69,30 @@ void ArrowTool::onKeyDown(int key)
{
lctrlDown = true;
}
else if(key == 'R')
{
if(g_selectedInstances.size() > 0)
{
Instance* selectedInstance = g_selectedInstances.at(0);
AudioPlayer::playSound(clickSound);
if(PartInstance* part = dynamic_cast<PartInstance*>(selectedInstance))
{
part->setCFrame(part->getCFrame()*Matrix3::fromEulerAnglesXYZ(0,toRadians(90),0));
}
}
}
else if(key == 'T')
{
if(g_selectedInstances.size() > 0)
{
Instance* selectedInstance = g_selectedInstances.at(0);
AudioPlayer::playSound(clickSound);
if(PartInstance* part = dynamic_cast<PartInstance*>(selectedInstance))
{
part->setCFrame(part->getCFrame()*Matrix3::fromEulerAnglesXYZ(0,0,toRadians(90)));
}
}
}
}
void ArrowTool::onKeyUp(int key)