style cleanup, use { on newline after function definition.
spelling 'impliment' -> 'implement'
This commit is contained in:
@@ -303,7 +303,8 @@ PyAttributeDef SCA_JoystickSensor::Attributes[] = {
|
||||
const char SCA_JoystickSensor::GetButtonActiveList_doc[] =
|
||||
"getButtonActiveList\n"
|
||||
"\tReturns a list containing the indices of the button currently pressed.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetButtonActiveList( ) {
|
||||
PyObject* SCA_JoystickSensor::PyGetButtonActiveList( )
|
||||
{
|
||||
SCA_Joystick *joy = ((SCA_JoystickManager *)m_eventmgr)->GetJoystickDevice(m_joyindex);
|
||||
PyObject *ls = PyList_New(0);
|
||||
PyObject *value;
|
||||
@@ -325,7 +326,8 @@ PyObject* SCA_JoystickSensor::PyGetButtonActiveList( ) {
|
||||
const char SCA_JoystickSensor::GetButtonStatus_doc[] =
|
||||
"getButtonStatus(buttonIndex)\n"
|
||||
"\tReturns a bool of the current pressed state of the specified button.\n";
|
||||
PyObject* SCA_JoystickSensor::PyGetButtonStatus( PyObject* args ) {
|
||||
PyObject* SCA_JoystickSensor::PyGetButtonStatus( PyObject* args )
|
||||
{
|
||||
SCA_Joystick *joy = ((SCA_JoystickManager *)m_eventmgr)->GetJoystickDevice(m_joyindex);
|
||||
int index;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user