Oliver Tappe 77d9a1e9bc * of course, gcc4 had more issues with the Joystick preflet
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 18:08:38 +00:00

45 lines
632 B
C++

/*
* Copyright 2008 Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Fredrik Modéen fredrik@modeen.se
*/
#include "PortItem.h"
PortItem::PortItem(const char* label)
:BStringItem(label)
{}
PortItem::~PortItem()
{}
void
PortItem::DrawItem(BView *owner, BRect frame, bool complete)
{
BStringItem::DrawItem(owner, frame, complete);
}
BString
PortItem::GetOldJoystickName()
{
return fOldSelectedJoystick;
}
BString
PortItem::GetJoystickName()
{
return fSelectedJoystick;
}
void
PortItem::SetJoystickName(BString str)
{
fOldSelectedJoystick = fSelectedJoystick;
fSelectedJoystick = str;
}