mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 02:11:35 +00:00
20 lines
277 B
R
20 lines
277 B
R
|
#include "cvar.h"
|
||
|
|
||
|
#include "MouseToggle.h"
|
||
|
|
||
|
@implementation MouseToggle
|
||
|
-(void)toggle
|
||
|
{
|
||
|
if (Cvar_GetFloat ("m_pitch") < 0) {
|
||
|
Cvar_SetFloat ("m_pitch", 0.022);
|
||
|
} else {
|
||
|
Cvar_SetFloat ("m_pitch", -0.022);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
-(BOOL)value
|
||
|
{
|
||
|
return Cvar_GetFloat ("m_pitch") < 0;
|
||
|
}
|
||
|
@end
|