mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Add source:isPaused() (enhancement #141)
This commit is contained in:
@@ -181,6 +181,13 @@ namespace audio
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Source_isPaused(lua_State * L)
|
||||
{
|
||||
Source * t = luax_checksource(L, 1);
|
||||
luax_pushboolean(L, t->isPaused());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Source_isStatic(lua_State * L)
|
||||
{
|
||||
Source * t= luax_checksource(L, 1);
|
||||
@@ -205,10 +212,11 @@ namespace audio
|
||||
{ "getVelocity", w_Source_getVelocity },
|
||||
{ "setDirection", w_Source_setDirection },
|
||||
{ "getDirection", w_Source_getDirection },
|
||||
|
||||
|
||||
{ "setLooping", w_Source_setLooping },
|
||||
{ "isLooping", w_Source_isLooping },
|
||||
{ "isStopped", w_Source_isStopped },
|
||||
{ "isPaused", w_Source_isPaused },
|
||||
{ "isStatic", w_Source_isStatic },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user