浏览代码

* Fixed error in tutorial, updated caca_get_event() doc

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 18 年前
父节点
当前提交
6682ce2bd9
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. +2
    -1
      DotNet/test.cs
  2. +1
    -1
      caca/event.c
  3. +1
    -1
      doc/tutorial.dox

+ 2
- 1
DotNet/test.cs 查看文件

@@ -50,10 +50,11 @@ class Test {
kk.setDisplayTitle("libcaca .NET Bindings test suite");

Event e = new Event();
int startTime = kk.getRendertime();
while(kk.getEvent(Event.type.KEY_RELEASE, e, 10) == 0)
{
kk.Refresh();
Console.WriteLine("Render time : {0}", kk.getRendertime());
Console.WriteLine("Render time : {0}", kk.getRendertime()-startTime);
}




+ 1
- 1
caca/event.c 查看文件

@@ -57,7 +57,7 @@ static int _lowlevel_event(caca_display_t *, caca_event_t *);
*
* \param dp The libcaca graphical context.
* \param event_mask Bitmask of requested events.
* \param timeout A timeout value in microseconds
* \param timeout A timeout value in microseconds, -1 for blocking behaviour
* \param ev A pointer to a caca_event structure, or NULL.
* \return 1 if a matching event was received, or 0 if the wait timeouted.
*/


+ 1
- 1
doc/tutorial.dox 查看文件

@@ -21,7 +21,7 @@ int main(void)
/* Draw a string at coordinates (0, 0) */
cucul_putstr(cv, 0, 0, "This is a message");
/* Refresh display */
caca_refresh_display();
caca_refresh_display(dp);
/* Wait for a key press event */
caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, -1);
/* Clean up library */


正在加载...
取消
保存