GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
focus_target(3) Arcan Lua API focus_target(3)

focus_target - Specify a frameserver the scheduler should try and bias

nil
focus_target( vid:WORLDID )
focus_target( vid:fsrv )

Some synchronisation strategies might rely on a focus target, some external process to bias in favor of. In such cases, the specific target has to be pointed out by the scripts themselves as the engine has no direct way of knowing which client has visual focus and so on. This function can be used to set such an object. Calling the function without any arguments or with WORLDID as argument will remove any existing bias focus. Should the frameserver expire, the bias will be removed implicitly.

1
calling the function with a vid that is not tied to a frameserver is a terminal state transition.

function focus_target0()
      local vid =
            target_alloc("test", function(source, status)
            end);
      if (valid_vid(vid, TYPE_FRAMESERVER)) then
            focus_target(vid);
      end
end

June 2022 targetcontrol

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.